Skip to content

Commit

Permalink
Update EpisodeMap.py
Browse files Browse the repository at this point in the history
  • Loading branch information
CollinHeist committed Oct 18, 2023
1 parent 06e8ca2 commit e55632d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions modules/EpisodeMap.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,7 @@ def reset(self) -> None:
def get_generic_season_title(self, *,
season_number: Optional[int] = None,
episode_info: Optional[EpisodeInfo] = None,
default: Optional[Callable[[EpisodeInfo], str]] = None,
) -> str:
"""
Get the generic season title for the given entry.
Expand All @@ -283,6 +284,10 @@ def get_generic_season_title(self, *,
if season_number is None:
season_number = episode_info.season_number

# Call default function if provided
if default is not None:
return default(episode_info=episode_info)

return 'Specials' if season_number == 0 else f'Season {season_number}'


Expand Down
2 changes: 1 addition & 1 deletion modules/ref/version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1.14.4-develop26
v1.14.4-develop27

0 comments on commit e55632d

Please sign in to comment.