forked from DRMTalks/devine
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:
|
||||
if episode.season == season:
|
||||
if episode.name:
|
||||
season_tree.add(
|
||||
f"[bold]{str(episode.number).zfill(len(str(episodes)))}" + (
|
||||
f".[/] [bright_black]{episode.name}" if episode.name else ""
|
||||
)
|
||||
f"[bold]{str(episode.number).zfill(len(str(episodes)))}.[/] "
|
||||
f"[bright_black]{episode.name}"
|
||||
)
|
||||
else:
|
||||
season_tree.add(f"[bright_black]Episode {str(episode.number).zfill(len(str(episodes)))}")
|
||||
|
||||
return tree
|
||||
|
||||
|
|
Loading…
Reference in New Issue