Skip to content

Commit

Permalink
Update to 1.0.1
Browse files Browse the repository at this point in the history
Fixed Lines3-5, Allow user to set the update rate of the script
  • Loading branch information
AdamWHY2K committed Feb 10, 2023
1 parent 664c1fc commit 2660ef7
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 6 deletions.
Binary file modified @Resources/Jellyfin_Status.exe
Binary file not shown.
4 changes: 2 additions & 2 deletions @Resources/Jellyfin_Status.pyw
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ class App():
if __name__ == "__main__":
#Check for updates, doing this outside of the main program so it only checks once per load; instead of every 60 seconds.
JF_Status_github = requests.get("https://api.github.com/repos/AdamWHY2K/Rainmeter_Jellyfin_Status/releases")
current_version = "1.0.0"
current_version = "1.0.1"
try:
latest_version = JF_Status_github.json()[0]["tag_name"][1:]
changelog = JF_Status_github.json()[0]["body"]
Expand Down Expand Up @@ -114,4 +114,4 @@ if __name__ == "__main__":
myApp.write_users()
except IndexError:
pass
sleep(60)
sleep(int(sys.argv[3]))
33 changes: 29 additions & 4 deletions Jellyfin_Status.ini
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ IP=192.168.56.104:8096
API=1a2b3c4d5e6f7g8h9i0j

;Optional, change these if you want
JFUpdateRate=60 ;Number of seconds to wait before fetching refreshed data
Height=23
BColor=[DesktopBG1]
FColor=[DesktopFG1]
Expand All @@ -39,7 +40,7 @@ AltFColor=[DesktopFG2]
[MeasureRun]
Measure=Plugin
Plugin=RunCommand
Parameter=#@#Jellyfin_Status.exe #IP# #API#
Parameter=#@#Jellyfin_Status.exe #IP# #API# #JFUpdateRate#
State=Hide
OutputType=ANSI

Expand Down Expand Up @@ -161,7 +162,7 @@ DynamicVariables=1
[Line3]
Group=User3Group
Meter=String
Text=[User3Name] [\x25b6] [User3Playing] [User3Transcoding] via [User3Client] [\x25C0] [User3MinutesLeft]
Text=[User3PlayStatus] [User3Name] | [User3Playing] [User3Transcoding] via [User3Client] | [User3MinutesLeft] [User3PlayStatus]
FontColor=#FColor#
FontFace=Clear Sans
StringAlign=Center
Expand Down Expand Up @@ -200,7 +201,7 @@ DynamicVariables=1
[Line4]
Group=User4Group
Meter=String
Text=[User4Name] [\x25b6] [User4Playing] [User4Transcoding] via [User4Client] [\x25C0] [User4MinutesLeft]
Text=[User4PlayStatus] [User4Name] | [User4Playing] [User4Transcoding] via [User4Client] | [User4MinutesLeft] [User4PlayStatus]
FontColor=#FColor#
FontFace=Clear Sans
StringAlign=Center
Expand Down Expand Up @@ -240,7 +241,7 @@ DynamicVariables=1
[Line5]
Group=User5Group
Meter=String
Text=[User5Name] [\x25b6] [User5Playing] [User5Transcoding] via [User5Client] [\x25C0] [User5MinutesLeft]
Text=[User5PlayStatus] [User5Name] | [User5Playing] [User5Transcoding] via [User5Client] | [User5MinutesLeft] [User5PlayStatus]
FontColor=#FColor#
FontFace=Clear Sans
StringAlign=Center
Expand Down Expand Up @@ -489,6 +490,14 @@ RegExp=(?siU)<percentage_done>(.*)<percentage_done>
Substitute="<percentage_done>":""
StringIndex=1

[User3PlayStatus]
Measure=Plugin
Plugin=WebParser
URL=[GetUser3]
RegExp=(?siU)<play_status>(.*)<play_status>
Substitute="<play_status>":""
StringIndex=1

[User3BarCalc]
Measure=Calc
Formula=[User3PercentageDone]
Expand Down Expand Up @@ -553,6 +562,14 @@ RegExp=(?siU)<percentage_done>(.*)<percentage_done>
Substitute="<percentage_done>":""
StringIndex=1

[User4PlayStatus]
Measure=Plugin
Plugin=WebParser
URL=[GetUser4]
RegExp=(?siU)<play_status>(.*)<play_status>
Substitute="<play_status>":""
StringIndex=1

[User4BarCalc]
Measure=Calc
Formula=[User4PercentageDone]
Expand Down Expand Up @@ -617,6 +634,14 @@ RegExp=(?siU)<percentage_done>(.*)<percentage_done>
Substitute="<percentage_done>":""
StringIndex=1

[User5PlayStatus]
Measure=Plugin
Plugin=WebParser
URL=[GetUser5]
RegExp=(?siU)<play_status>(.*)<play_status>
Substitute="<play_status>":""
StringIndex=1

[User5BarCalc]
Measure=Calc
Formula=[User5PercentageDone]
Expand Down

0 comments on commit 2660ef7

Please sign in to comment.