Mercurial > minori
comparison src/services/services.cc @ 325:78929794e7d8
pages/seasons: run seasons search in a separate thread
author | Paper <paper@paper.us.eu.org> |
---|---|
date | Thu, 13 Jun 2024 00:36:41 -0400 |
parents | 1b5c04268d6a |
children | b5d6c27c308f |
comparison
equal
deleted
inserted
replaced
324:5d3c9b31aa6e | 325:78929794e7d8 |
---|---|
31 case Anime::Service::Kitsu: return Kitsu::Search(search); | 31 case Anime::Service::Kitsu: return Kitsu::Search(search); |
32 default: return {}; | 32 default: return {}; |
33 } | 33 } |
34 } | 34 } |
35 | 35 |
36 std::vector<int> GetSeason(Anime::SeriesSeason season, Date::Year year) { | 36 bool GetSeason(Anime::SeriesSeason season, Date::Year year) { |
37 session.SetStatusBar(Translate::ToString(session.config.service) + ": Retrieving anime season data..."); | 37 session.SetStatusBar(Translate::ToString(session.config.service) + ": Retrieving anime season data..."); |
38 | 38 |
39 switch (session.config.service) { | 39 switch (session.config.service) { |
40 case Anime::Service::AniList: return AniList::GetSeason(season, year); | 40 case Anime::Service::AniList: return AniList::GetSeason(season, year); |
41 case Anime::Service::Kitsu: return Kitsu::GetSeason(season, year); | 41 case Anime::Service::Kitsu: return Kitsu::GetSeason(season, year); |