Mercurial > minori
comparison src/services/anilist.cc @ 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 | 8141f409d52c |
comparison
equal
deleted
inserted
replaced
319:d928ec7b6a0d | 320:1b5c04268d6a |
---|---|
231 int GetAnimeList() { | 231 int GetAnimeList() { |
232 if (!account.IsValid()) { | 232 if (!account.IsValid()) { |
233 session.SetStatusBar("AniList: Account isn't valid! (unauthorized?)"); | 233 session.SetStatusBar("AniList: Account isn't valid! (unauthorized?)"); |
234 return 0; | 234 return 0; |
235 } | 235 } |
236 | |
237 session.SetStatusBar("AniList: Retrieving anime list..."); | |
238 | 236 |
239 /* NOTE: these really ought to be in the qrc file */ | 237 /* NOTE: these really ought to be in the qrc file */ |
240 constexpr std::string_view query = "query ($id: Int) {\n" | 238 constexpr std::string_view query = "query ($id: Int) {\n" |
241 " MediaListCollection (userId: $id, type: ANIME) {\n" | 239 " MediaListCollection (userId: $id, type: ANIME) {\n" |
242 " lists {\n" | 240 " lists {\n" |