mirror of
https://github.com/devine-dl/devine.git
synced 2025-05-04 11:39:43 +00:00
State full 'Episode' text if there's no episode name
This commit is contained in:
parent
f8a8309628
commit
3456e24846
@ -196,11 +196,13 @@ class Series(SortedKeyList, ABC):
|
|||||||
)
|
)
|
||||||
for episode in self:
|
for episode in self:
|
||||||
if episode.season == season:
|
if episode.season == season:
|
||||||
|
if episode.name:
|
||||||
season_tree.add(
|
season_tree.add(
|
||||||
f"[bold]{str(episode.number).zfill(len(str(episodes)))}" + (
|
f"[bold]{str(episode.number).zfill(len(str(episodes)))}.[/] "
|
||||||
f".[/] [bright_black]{episode.name}" if episode.name else ""
|
f"[bright_black]{episode.name}"
|
||||||
)
|
|
||||||
)
|
)
|
||||||
|
else:
|
||||||
|
season_tree.add(f"[bright_black]Episode {str(episode.number).zfill(len(str(episodes)))}")
|
||||||
|
|
||||||
return tree
|
return tree
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user