Use while-true

This commit is contained in:
CommanderRedYT 2024-03-20 15:17:51 +01:00
parent c40801dd8b
commit 0c54d97e65
No known key found for this signature in database
GPG Key ID: 572F157519DC8A5E
1 changed files with 2 additions and 2 deletions

View File

@ -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)
for _ in range(24):
while True:
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)
for _ in range(100):
while True:
all_existing: set[str] = set(self._get_existing_seasons())
print(f"[setup] seasons: {all_existing} {expected_season=}")