comparison src/gui/window.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 34347fd2a2de
children 71396ecb6f7e
comparison
equal deleted inserted replaced
318:3b355fa948c7 319:d928ec7b6a0d
109 anitomy.Parse(Strings::ToWstring(file)); 109 anitomy.Parse(Strings::ToWstring(file));
110 110
111 const auto& elements = anitomy.elements(); 111 const auto& elements = anitomy.elements();
112 const std::string title = Strings::ToUtf8String(elements.get(anitomy::kElementAnimeTitle)); 112 const std::string title = Strings::ToUtf8String(elements.get(anitomy::kElementAnimeTitle));
113 113
114 int id = Anime::db.GetAnimeFromTitle(title); 114 int id = Anime::db.LookupAnimeTitle(title);
115 if (id <= 0) 115 if (id <= 0)
116 continue; 116 continue;
117 117
118 page->SetPlaying(Anime::db.items[id], elements); 118 page->SetPlaying(Anime::db.items[id], elements);
119 break; 119 break;