comparison src/services/anilist.cpp @ 66:6481c5aed3e1

posters: add poster widget... why does AniList call these cover images? they're posters...
author Paper <mrpapersonic@gmail.com>
date Mon, 02 Oct 2023 05:56:32 -0400
parents 26721c28bf22
children 64e5f427c6a2
comparison
equal deleted inserted replaced
65:26721c28bf22 66:6481c5aed3e1
155 155
156 anime.SetAiringStatus(Translate::AniList::ToSeriesStatus(JSON::GetString(json, "/status"_json_pointer))); 156 anime.SetAiringStatus(Translate::AniList::ToSeriesStatus(JSON::GetString(json, "/status"_json_pointer)));
157 157
158 anime.SetAirDate(ParseDate(json["/startDate"_json_pointer])); 158 anime.SetAirDate(ParseDate(json["/startDate"_json_pointer]));
159 159
160 anime.SetPosterUrl(JSON::GetString(json, "/coverImage/large"_json_pointer));
161
160 anime.SetAudienceScore(JSON::GetInt(json, "/averageScore"_json_pointer)); 162 anime.SetAudienceScore(JSON::GetInt(json, "/averageScore"_json_pointer));
161 anime.SetSeason(Translate::AniList::ToSeriesSeason(JSON::GetString(json, "/season"_json_pointer))); 163 anime.SetSeason(Translate::AniList::ToSeriesSeason(JSON::GetString(json, "/season"_json_pointer)));
162 anime.SetDuration(JSON::GetInt(json, "/duration"_json_pointer)); 164 anime.SetDuration(JSON::GetInt(json, "/duration"_json_pointer));
163 anime.SetSynopsis(Strings::TextifySynopsis(JSON::GetString(json, "/description"_json_pointer))); 165 anime.SetSynopsis(Strings::TextifySynopsis(JSON::GetString(json, "/description"_json_pointer)));
164 166
217 " month\n" 219 " month\n"
218 " day\n" 220 " day\n"
219 " }\n" 221 " }\n"
220 " updatedAt\n" 222 " updatedAt\n"
221 " media {\n" 223 " media {\n"
224 " coverImage {\n"
225 " large\n"
226 " }\n"
222 " id\n" 227 " id\n"
223 " title {\n" 228 " title {\n"
224 " romaji\n" 229 " romaji\n"
225 " english\n" 230 " english\n"
226 " native\n" 231 " native\n"