From 7d1941ed7595896103dfcfa8e8c8f0d5b4aa7514 Mon Sep 17 00:00:00 2001 From: CommanderRedYT Date: Tue, 19 Mar 2024 17:35:30 +0100 Subject: [PATCH] Improvements --- app/src/series.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/series.py b/app/src/series.py index 1cd702b..382806d 100644 --- a/app/src/series.py +++ b/app/src/series.py @@ -232,7 +232,9 @@ class Show: 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"""