mirror of
https://github.com/tubearchivist/jellyfin.git
synced 2025-07-07 01:31:11 +00:00
Compare commits
No commits in common. "0c54d97e6591c93291a769e6436bd5cec6b3e2c8" and "7d1941ed7595896103dfcfa8e8c8f0d5b4aa7514" have entirely different histories.
0c54d97e65
...
7d1941ed75
@ -74,7 +74,7 @@ class Library:
|
||||
path: str = f"Items/{collection_id}/Refresh?Recursive=true&ImageRefreshMode=Default&MetadataRefreshMode=Default" # noqa: E501
|
||||
Jellyfin().post(path, False)
|
||||
|
||||
while True:
|
||||
for _ in range(24):
|
||||
response = Jellyfin().get("Library/VirtualFolders")
|
||||
for folder in response:
|
||||
if not folder["ItemId"] == collection_id:
|
||||
@ -211,7 +211,7 @@ class Show:
|
||||
path: str = f"Items/{jf_id}/Refresh?Recursive=true&ImageRefreshMode=Default&MetadataRefreshMode=Default" # noqa: E501
|
||||
print(f"[setup] {path=}")
|
||||
Jellyfin().post(path, False)
|
||||
while True:
|
||||
for _ in range(100):
|
||||
all_existing: set[str] = set(self._get_existing_seasons())
|
||||
|
||||
print(f"[setup] seasons: {all_existing} {expected_season=}")
|
||||
@ -230,13 +230,11 @@ class Show:
|
||||
path: str = f"Shows/{series_id}/Seasons"
|
||||
all_seasons: dict = Jellyfin().get(path)
|
||||
|
||||
# print(f"[setup] {path=} all_seasons_items={all_seasons['Items']}")
|
||||
print(f"[setup] {path=} all_seasons_items={all_seasons['Items']}")
|
||||
|
||||
return [str(i.get("IndexNumber")) for i in all_seasons["Items"]]
|
||||
res = [str(i.get("Name")) for i in all_seasons["Items"]]
|
||||
|
||||
# res = [str(i.get("Name")) for i in all_seasons["Items"]]
|
||||
|
||||
# return [name.split(' ')[1] if ' ' in name else name for name in res]
|
||||
return [name.split(' ')[1] if ' ' in name else name for name in res]
|
||||
|
||||
def delete_folders(self, folders: list[str]) -> None:
|
||||
"""delete temporary folders created"""
|
||||
|
Loading…
x
Reference in New Issue
Block a user