Skip to content
This repository has been archived by the owner on Nov 8, 2024. It is now read-only.

Commit

Permalink
Improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
CommanderRedYT committed Mar 19, 2024
1 parent 429010f commit 7d1941e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/src/series.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,9 @@ def _get_existing_seasons(self) -> list[str]:

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"]]

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"""
Expand Down

0 comments on commit 7d1941e

Please sign in to comment.