comparison src/core/anime.cpp @ 66:6481c5aed3e1

posters: add poster widget... why does AniList call these cover images? they're posters...
author Paper <mrpapersonic@gmail.com>
date Mon, 02 Oct 2023 05:56:32 -0400
parents 2743011a6042
children 442065432549
comparison
equal deleted inserted replaced
65:26721c28bf22 66:6481c5aed3e1
200 200
201 int Anime::GetDuration() const { 201 int Anime::GetDuration() const {
202 return info_.duration; 202 return info_.duration;
203 } 203 }
204 204
205 std::string Anime::GetPosterUrl() const {
206 return info_.poster_url;
207 }
208
205 void Anime::SetId(int id) { 209 void Anime::SetId(int id) {
206 info_.id = id; 210 info_.id = id;
207 } 211 }
208 212
209 void Anime::SetRomajiTitle(std::string const& title) { 213 void Anime::SetRomajiTitle(std::string const& title) {
262 info_.synopsis = synopsis; 266 info_.synopsis = synopsis;
263 } 267 }
264 268
265 void Anime::SetDuration(int duration) { 269 void Anime::SetDuration(int duration) {
266 info_.duration = duration; 270 info_.duration = duration;
271 }
272
273 void Anime::SetPosterUrl(std::string url) {
274 info_.poster_url = url;
267 } 275 }
268 276
269 std::string Anime::GetUserPreferredTitle() const { 277 std::string Anime::GetUserPreferredTitle() const {
270 switch (session.config.anime_list.language) { 278 switch (session.config.anime_list.language) {
271 case TitleLanguage::NATIVE: return (GetNativeTitle().empty()) ? GetRomajiTitle() : GetNativeTitle(); 279 case TitleLanguage::NATIVE: return (GetNativeTitle().empty()) ? GetRomajiTitle() : GetNativeTitle();