comparison 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
comparison
equal deleted inserted replaced
66:6481c5aed3e1 67:442065432549
204 204
205 std::string Anime::GetPosterUrl() const { 205 std::string Anime::GetPosterUrl() const {
206 return info_.poster_url; 206 return info_.poster_url;
207 } 207 }
208 208
209 std::string Anime::GetServiceUrl() const {
210 return "https://anilist.co/anime/" + std::to_string(GetId());
211 }
212
209 void Anime::SetId(int id) { 213 void Anime::SetId(int id) {
210 info_.id = id; 214 info_.id = id;
211 } 215 }
212 216
213 void Anime::SetRomajiTitle(std::string const& title) { 217 void Anime::SetRomajiTitle(std::string const& title) {