Mercurial > minori
diff src/services/services.cc @ 304:2115488eb302
*: add very early season searcher
author | Paper <paper@paper.us.eu.org> |
---|---|
date | Mon, 13 May 2024 17:02:35 -0400 |
parents | 657fda1b9cac |
children | b1f4d1867ab1 |
line wrap: on
line diff
--- a/src/services/services.cc Mon May 13 15:19:55 2024 -0400 +++ b/src/services/services.cc Mon May 13 17:02:35 2024 -0400 @@ -19,6 +19,13 @@ } } +std::vector<int> GetSeason(Anime::SeriesSeason season, Date::Year year) { + switch (session.config.service) { + case Anime::Service::AniList: return AniList::GetSeason(season, year); + default: return {}; + } +} + void UpdateAnimeEntry(int id) { switch (session.config.service) { case Anime::Service::AniList: AniList::UpdateAnimeEntry(id); break;