From e5a287bc14169b9b209b3ae56040c61202c32f27 Mon Sep 17 00:00:00 2001 From: John Veness Date: Sun, 17 May 2026 15:06:55 +0100 Subject: [PATCH] episode.py: season/seasons pluralization If num_seasons = 0, output "0 seasons" (not sure if this would ever occur). If num_seasons = 1, output "1 season". If num_seasons >=2 output "X seasons". --- unshackle/core/titles/episode.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unshackle/core/titles/episode.py b/unshackle/core/titles/episode.py index c93404e..196d897 100644 --- a/unshackle/core/titles/episode.py +++ b/unshackle/core/titles/episode.py @@ -149,7 +149,7 @@ class Series(SortedKeyList, ABC): sum(seasons.values()) season_breakdown = ", ".join(f"S{season}({count})" for season, count in sorted(seasons.items())) tree = Tree( - f"{num_seasons} seasons, {season_breakdown}", + f"{num_seasons} season{'s'[:num_seasons^1]}, {season_breakdown}", guide_style="bright_black", ) if verbose: