Mercurial > minori
comparison src/services/kitsu.cc @ 392:a72d6d7b3568
anime_info: don't need to wait on the thread, just disconnect
eventually, we can cancel any outgoing requests, but it's kind of
unnecessary
| author | Paper <paper@tflc.us> |
|---|---|
| date | Fri, 07 Nov 2025 07:10:32 -0500 |
| parents | 1e5d922fe82b |
| children | 963047512d34 |
comparison
equal
deleted
inserted
replaced
| 391:c3f717b7321b | 392:a72d6d7b3568 |
|---|---|
| 513 | 513 |
| 514 bool RetrieveAnimeMetadata(int id) | 514 bool RetrieveAnimeMetadata(int id) |
| 515 { | 515 { |
| 516 /* TODO: the genres should *probably* be a std::optional */ | 516 /* TODO: the genres should *probably* be a std::optional */ |
| 517 Anime::Anime &anime = Anime::db.items[id]; | 517 Anime::Anime &anime = Anime::db.items[id]; |
| 518 if (anime.GetGenres().size() > 0 && anime.GetProducers().size()) | 518 if (anime.GetGenres().size() > 0 && anime.GetProducers().size() > 0) |
| 519 return false; | 519 return false; |
| 520 | 520 |
| 521 std::optional<std::string> service_id = anime.GetServiceId(Anime::Service::Kitsu); | 521 std::optional<std::string> service_id = anime.GetServiceId(Anime::Service::Kitsu); |
| 522 if (!service_id) | 522 if (!service_id) |
| 523 return false; | 523 return false; |
