mirror of
https://github.com/clementine-player/Clementine
synced 2025-01-31 11:35:24 +01:00
added station art
This commit is contained in:
parent
3e31094227
commit
cc0cedc5bd
@ -226,6 +226,8 @@ void RadioBrowserService::ReadStation(QJsonObject& item, StreamList* ret) {
|
||||
stream.uuid_ = item["stationuuid"].toString();
|
||||
QUrl url(item["url"].toString());
|
||||
stream.url_ = url;
|
||||
QUrl favicon(item["favicon"].toString());
|
||||
stream.favicon_ = favicon;
|
||||
ret->append(stream);
|
||||
}
|
||||
|
||||
@ -240,6 +242,7 @@ Song RadioBrowserService::Stream::ToSong(const QString& prefix) const {
|
||||
ret.set_title(song_title);
|
||||
ret.set_artist(name_);
|
||||
ret.set_url(url_);
|
||||
ret.set_art_automatic(favicon_.toString());
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
@ -57,6 +57,7 @@ class RadioBrowserService : public InternetService {
|
||||
QString name_;
|
||||
QUrl url_;
|
||||
QString uuid_;
|
||||
QUrl favicon_;
|
||||
|
||||
Song ToSong(const QString& prefix) const;
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user