Add KeyboardInterrupt handling

This commit is contained in:
Luigi311
2022-05-23 02:01:28 -06:00
parent a375f94487
commit 768103f113
2 changed files with 5 additions and 1 deletions

View File

@@ -150,6 +150,7 @@ class Jellyfin():
if jellyfin_library["Name"] == library:
library_id = jellyfin_library["Id"]
break
if library_id:
library_search = self.query(f"/Users/{user_id}/Items?SortBy=SortName&SortOrder=Ascending&Recursive=true&ParentId={library_id}&limit=1", "get")
library_type = library_search["Items"][0]["Type"]