mirror of
https://github.com/tubearchivist/jellyfin.git
synced 2024-11-16 17:00:14 +00:00
fix first run errors
This commit is contained in:
parent
73b8920a9c
commit
e8ef2317ae
@ -192,7 +192,10 @@ class Show:
|
||||
os.path.split(jf_ep["Path"].replace("\\", "/"))[0]
|
||||
)[-1]
|
||||
season_folder = os.path.join(base, channel_folder, expected_season)
|
||||
os.makedirs(season_folder)
|
||||
try:
|
||||
os.makedirs(season_folder)
|
||||
except FileExistsError:
|
||||
pass
|
||||
self._wait_for_season(expected_season)
|
||||
|
||||
return season_folder
|
||||
@ -219,7 +222,7 @@ class Show:
|
||||
path: str = f"Shows/{series_id}/Seasons"
|
||||
all_seasons: dict = Jellyfin().get(path)
|
||||
|
||||
return [str(i.get("IndexNumber")) for i in all_seasons["Items"]]
|
||||
return [str(i.get("Name")) for i in all_seasons["Items"]]
|
||||
|
||||
def delete_folders(self, folders: list[str]) -> None:
|
||||
"""delete temporary folders created"""
|
||||
|
Loading…
Reference in New Issue
Block a user