Improvements

This commit is contained in:
CommanderRedYT 2024-03-19 16:22:09 +01:00
parent 5833594769
commit 61b584f547
No known key found for this signature in database
GPG Key ID: 572F157519DC8A5E
1 changed files with 2 additions and 1 deletions

View File

@ -209,11 +209,12 @@ class Show:
"""wait for season to be created in JF"""
jf_id: str = self.show["Id"]
path: str = f"Items/{jf_id}/Refresh?Recursive=true&ImageRefreshMode=Default&MetadataRefreshMode=Default" # noqa: E501
print(f"[setup] {path=}")
Jellyfin().post(path, False)
for _ in range(100):
all_existing: set[str] = set(self._get_existing_seasons())
print(f"[setup] seasons: {all_existing}")
print(f"[setup] seasons: {all_existing} {expected_season=}")
if expected_season in all_existing:
return