comparison src/library/library.cc @ 319:d928ec7b6a0d

services/kitsu: implement GetAnimeList() it finally works!
author Paper <paper@paper.us.eu.org>
date Wed, 12 Jun 2024 17:52:26 -0400
parents 862d0d8619f6
children 71396ecb6f7e
comparison
equal deleted inserted replaced
318:3b355fa948c7 319:d928ec7b6a0d
32 32
33 const auto& elements = anitomy.elements(); 33 const auto& elements = anitomy.elements();
34 34
35 const std::string title = Strings::ToUtf8String(elements.get(anitomy::kElementAnimeTitle)); 35 const std::string title = Strings::ToUtf8String(elements.get(anitomy::kElementAnimeTitle));
36 36
37 const int id = Anime::db.GetAnimeFromTitle(title); 37 const int id = Anime::db.LookupAnimeTitle(title);
38 if (id <= 0) 38 if (id <= 0)
39 continue; 39 continue;
40 40
41 const int episode = Strings::ToInt(Strings::ToUtf8String(elements.get(anitomy::kElementEpisodeNumber))); 41 const int episode = Strings::ToInt(Strings::ToUtf8String(elements.get(anitomy::kElementEpisodeNumber)));
42 42