Skip to content

Commit

Permalink
Update to 1.0.2
Browse files Browse the repository at this point in the history
Fix uncaught PermissionError
  • Loading branch information
AdamWHY2K committed Feb 11, 2023
1 parent e981fcd commit 250be65
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
Binary file modified @Resources/Jellyfin_Status.exe
Binary file not shown.
6 changes: 4 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.1"
current_version = "1.0.2"
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,6 @@ if __name__ == "__main__":
myApp.write_users()
except IndexError:
pass
sleep(int(sys.argv[3]))
except PermissionError: #Occasionally, seemingly arbitrarily, throws PermissionError.. I think maybe it can't write while Rainmeter is using the file
pass #So just skip and hope that rainmeter is done reading the file by the next execution
sleep(int(sys.argv[3]))
3 changes: 2 additions & 1 deletion Jellyfin_Status.ini
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ 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
JFUpdateRate=60
;Number of seconds to wait before fetching refreshed data
Height=23
BColor=[DesktopBG1]
FColor=[DesktopFG1]
Expand Down

0 comments on commit 250be65

Please sign in to comment.