Mercurial > minori
comparison src/core/anime.cc @ 183:01d259b9c89f
pages/torrents.cc: parse feed descriptions separately
services/anilist.cc: use constexpr STL string_view for HTTP queries
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Mon, 04 Dec 2023 13:40:42 -0500 |
parents | bc8d2ccff09c |
children | 62e336597bb7 |
comparison
equal
deleted
inserted
replaced
182:c413e475f496 | 183:01d259b9c89f |
---|---|
204 std::string Anime::GetPosterUrl() const { | 204 std::string Anime::GetPosterUrl() const { |
205 return info_.poster_url; | 205 return info_.poster_url; |
206 } | 206 } |
207 | 207 |
208 std::string Anime::GetServiceUrl() const { | 208 std::string Anime::GetServiceUrl() const { |
209 /* todo: add support for other services... */ | |
209 return "https://anilist.co/anime/" + std::to_string(GetId()); | 210 return "https://anilist.co/anime/" + std::to_string(GetId()); |
210 } | 211 } |
211 | 212 |
212 void Anime::SetId(int id) { | 213 void Anime::SetId(int id) { |
213 info_.id = id; | 214 info_.id = id; |