mirror of
https://github.com/Dasemu/Transcriptarr.git
synced 2026-11-27 15:36:08 +00:00
Update subgen.py
Fixed UnboundLocalError: cannot access local variable 'jellyfin_userid' where it is not associated with a value
This commit is contained in:
1 parent
a6bd06249e
commit
715cd279e6
1 file changed
+1
@@ -280,6 +280,7 @@ def get_jellyfin_file_name(item_id: str, jellyfin_url: str, jellyfin_token: str)
|
||||
}
|
||||
|
||||
# Cheap way to get the admin user id, and save it for later use.
|
||||
global jellyfin_userid
|
||||
if not jellyfin_userid:
|
||||
users_request = json.loads(requests.get(f"{jellyfin_url}/Users", headers=headers).content)
|
||||
for user in users_request:
|
||||
|
||||
Reference in new issue
Block a user