Mercurial > minori
diff 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 |
line wrap: on
line diff
--- a/src/core/anime.cpp Sun Oct 01 23:26:35 2023 -0400 +++ b/src/core/anime.cpp Mon Oct 02 05:56:32 2023 -0400 @@ -202,6 +202,10 @@ return info_.duration; } +std::string Anime::GetPosterUrl() const { + return info_.poster_url; +} + void Anime::SetId(int id) { info_.id = id; } @@ -266,6 +270,10 @@ info_.duration = duration; } +void Anime::SetPosterUrl(std::string url) { + info_.poster_url = url; +} + std::string Anime::GetUserPreferredTitle() const { switch (session.config.anime_list.language) { case TitleLanguage::NATIVE: return (GetNativeTitle().empty()) ? GetRomajiTitle() : GetNativeTitle();