comparison 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
comparison
equal deleted inserted replaced
303:ab7ff259b4ca 304:2115488eb302
17 case Anime::Service::AniList: return AniList::Search(search); 17 case Anime::Service::AniList: return AniList::Search(search);
18 default: return {}; 18 default: return {};
19 } 19 }
20 } 20 }
21 21
22 std::vector<int> GetSeason(Anime::SeriesSeason season, Date::Year year) {
23 switch (session.config.service) {
24 case Anime::Service::AniList: return AniList::GetSeason(season, year);
25 default: return {};
26 }
27 }
28
22 void UpdateAnimeEntry(int id) { 29 void UpdateAnimeEntry(int id) {
23 switch (session.config.service) { 30 switch (session.config.service) {
24 case Anime::Service::AniList: AniList::UpdateAnimeEntry(id); break; 31 case Anime::Service::AniList: AniList::UpdateAnimeEntry(id); break;
25 default: break; 32 default: break;
26 } 33 }