diff src/services/services.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 78929794e7d8
children 948955c3ba81
line wrap: on
line diff
--- a/src/services/services.cc	Thu Jun 13 00:42:00 2024 -0400
+++ b/src/services/services.cc	Thu Jun 13 01:49:18 2024 -0400
@@ -33,12 +33,12 @@
 	}
 }
 
-bool GetSeason(Anime::SeriesSeason season, Date::Year year) {
+bool GetSeason(Anime::Season season) {
 	session.SetStatusBar(Translate::ToString(session.config.service) + ": Retrieving anime season data...");
 
 	switch (session.config.service) {
-		case Anime::Service::AniList: return AniList::GetSeason(season, year);
-		case Anime::Service::Kitsu: return Kitsu::GetSeason(season, year);
+		case Anime::Service::AniList: return AniList::GetSeason(season);
+		case Anime::Service::Kitsu: return Kitsu::GetSeason(season);
 		default: return {};
 	}
 }