diff src/gui/pages/search.cc @ 327:b5d6c27c308f

anime: refactor Anime::SeriesSeason to Season class ToLocalString has also been altered to take in both season and year because lots of locales actually treat formatting seasons differently! most notably is Russian which adds a suffix at the end to notate seasons(??)
author Paper <paper@paper.us.eu.org>
date Thu, 13 Jun 2024 01:49:18 -0400
parents 5d3c9b31aa6e
children 8d45d892be88
line wrap: on
line diff
--- a/src/gui/pages/search.cc	Thu Jun 13 00:42:00 2024 -0400
+++ b/src/gui/pages/search.cc	Thu Jun 13 01:49:18 2024 -0400
@@ -126,9 +126,7 @@
 				case SR_TYPE: return Strings::ToQString(Translate::ToLocalString(anime.GetFormat()));
 				case SR_EPISODES: return anime.GetEpisodes();
 				case SR_SCORE: return QString::number(anime.GetAudienceScore()) + "%";
-				case SR_SEASON:
-					return Strings::ToQString(Translate::ToLocalString(anime.GetSeason())) + " " +
-					       QString::number(anime.GetStartedDate().GetYear().value_or(2000));
+				case SR_SEASON: return Strings::ToQString(Translate::ToLocalString(anime.GetSeason()));
 				default: return {};
 			}
 			break;