comparison src/services/kitsu.cc @ 321:8141f409d52c

services/anilist: fix getting producers should studios and producers be stored separately?
author Paper <paper@paper.us.eu.org>
date Wed, 12 Jun 2024 20:42:44 -0400
parents 1b5c04268d6a
children 5d3c9b31aa6e
comparison
equal deleted inserted replaced
320:1b5c04268d6a 321:8141f409d52c
504 } 504 }
505 505
506 bool RetrieveAnimeMetadata(int id) { 506 bool RetrieveAnimeMetadata(int id) {
507 /* TODO: the genres should *probably* be a std::optional */ 507 /* TODO: the genres should *probably* be a std::optional */
508 Anime::Anime& anime = Anime::db.items[id]; 508 Anime::Anime& anime = Anime::db.items[id];
509 if (anime.GetGenres().size() > 0) 509 if (anime.GetGenres().size() > 0 && anime.GetProducers().size())
510 return false; 510 return false;
511 511
512 std::optional<std::string> service_id = anime.GetServiceId(Anime::Service::Kitsu); 512 std::optional<std::string> service_id = anime.GetServiceId(Anime::Service::Kitsu);
513 if (!service_id) 513 if (!service_id)
514 return false; 514 return false;