Mercurial > minori
diff src/gui/widgets/poster.cc @ 286:53e3c015a973
anime: initial cross-service support
currently the Kitsu and MAL services don't work when chosen in the
GUI. This is because they haven't been implemented yet :)
author | Paper <paper@paper.us.eu.org> |
---|---|
date | Wed, 08 May 2024 16:44:27 -0400 |
parents | f31305b9f60a |
children | 9a88e1725fd2 |
line wrap: on
line diff
--- a/src/gui/widgets/poster.cc Wed May 08 16:43:32 2024 -0400 +++ b/src/gui/widgets/poster.cc Wed May 08 16:44:27 2024 -0400 @@ -44,7 +44,9 @@ thread->start(); } - service_url_ = Strings::ToQString(anime.GetServiceUrl()); + std::optional<std::string> url = anime.GetServiceUrl(session.config.service); + if (url) + service_url_ = Strings::ToQString(url.value()); if (clickable_) { label_.disconnect();