Mercurial > minori
comparison include/services/services.h @ 320:1b5c04268d6a
services/kitsu: ACTUALLY finish GetAnimeList
there are some things the API just... doesn't provide. therefore
we have to request the genres separately any time a new anime info
box is opened...
| author | Paper <paper@paper.us.eu.org> |
|---|---|
| date | Wed, 12 Jun 2024 19:49:19 -0400 |
| parents | d928ec7b6a0d |
| children | 78929794e7d8 |
comparison
equal
deleted
inserted
replaced
| 319:d928ec7b6a0d | 320:1b5c04268d6a |
|---|---|
| 7 #include <string> | 7 #include <string> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 namespace Services { | 10 namespace Services { |
| 11 | 11 |
| 12 /* TODO: need to limit these to one thread (or put a mutex on the anime db) */ | 12 void Synchronize(); |
| 13 | 13 |
| 14 void Synchronize(); | 14 /* true = metadata was retrieved |
| 15 * false = metadata failed to be retrieved OR | |
| 16 * no metadata to be retrieved */ | |
| 17 bool RetrieveAnimeMetadata(int id); | |
| 18 | |
| 15 std::vector<int> Search(const std::string& search); | 19 std::vector<int> Search(const std::string& search); |
| 16 std::vector<int> GetSeason(Anime::SeriesSeason season, Date::Year year); | 20 std::vector<int> GetSeason(Anime::SeriesSeason season, Date::Year year); |
| 17 void UpdateAnimeEntry(int id); | 21 void UpdateAnimeEntry(int id); |
| 18 | 22 |
| 19 }; // namespace Services | 23 }; // namespace Services |
