Mercurial > minori
diff src/services/anilist.cc @ 260:dd211ff68b36
pages/seasons: add initial functionality
the menu doesn't work yet, but it's a good start
author | Paper <paper@paper.us.eu.org> |
---|---|
date | Wed, 03 Apr 2024 19:48:38 -0400 |
parents | 862d0d8619f6 |
children | 657fda1b9cac |
line wrap: on
line diff
--- a/src/services/anilist.cc Mon Apr 01 18:11:15 2024 -0400 +++ b/src/services/anilist.cc Wed Apr 03 19:48:38 2024 -0400 @@ -138,7 +138,10 @@ anime.SetAudienceScore(JSON::GetNumber(json, "/averageScore"_json_pointer, 0)); anime.SetSeason(Translate::AniList::ToSeriesSeason(JSON::GetString<std::string>(json, "/season"_json_pointer, ""))); anime.SetDuration(JSON::GetNumber(json, "/duration"_json_pointer, 0)); - anime.SetSynopsis(Strings::TextifySynopsis(JSON::GetString<std::string>(json, "/description"_json_pointer, ""))); + + std::string synopsis = JSON::GetString<std::string>(json, "/description"_json_pointer, ""); + Strings::TextifySynopsis(synopsis); + anime.SetSynopsis(synopsis); anime.SetGenres(JSON::GetArray<std::vector<std::string>>(json, "/genres"_json_pointer, {})); anime.SetTitleSynonyms(JSON::GetArray<std::vector<std::string>>(json, "/synonyms"_json_pointer, {}));