Mercurial > minori
diff src/core/anime.cpp @ 67:442065432549
poster: make posters link to AniList
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Mon, 02 Oct 2023 07:06:44 -0400 |
parents | 6481c5aed3e1 |
children |
line wrap: on
line diff
--- a/src/core/anime.cpp Mon Oct 02 05:56:32 2023 -0400 +++ b/src/core/anime.cpp Mon Oct 02 07:06:44 2023 -0400 @@ -206,6 +206,10 @@ return info_.poster_url; } +std::string Anime::GetServiceUrl() const { + return "https://anilist.co/anime/" + std::to_string(GetId()); +} + void Anime::SetId(int id) { info_.id = id; }