diff 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
line wrap: on
line diff
--- a/src/services/kitsu.cc	Wed Jun 12 19:49:19 2024 -0400
+++ b/src/services/kitsu.cc	Wed Jun 12 20:42:44 2024 -0400
@@ -506,7 +506,7 @@
 bool RetrieveAnimeMetadata(int id) {
 	/* TODO: the genres should *probably* be a std::optional */
 	Anime::Anime& anime = Anime::db.items[id];
-	if (anime.GetGenres().size() > 0)
+	if (anime.GetGenres().size() > 0 && anime.GetProducers().size())
 		return false;
 
 	std::optional<std::string> service_id = anime.GetServiceId(Anime::Service::Kitsu);