mirror of
https://github.com/clementine-player/Clementine
synced 2024-12-14 18:35:16 +01:00
Add source icon for Jamendo songs.
Rely on URL's host. This doesn't sound perfect to me, but I can't think of a better way to do this. Maybe making a comparison with one the Jamendo's streaming URLs host would have been better, but I think "api.jamendo.com" is very unlikely to change someday.
This commit is contained in:
parent
0969432820
commit
790808c47d
@ -461,6 +461,8 @@ QPixmap SongSourceDelegate::LookupPixmap(const QUrl& url, const QSize& size) con
|
||||
icon = QIcon(":icons/22x22/spotify.png");
|
||||
} else if (url.scheme() == "file") {
|
||||
icon = IconLoader::Load("folder-sound");
|
||||
} else if (url.host() == "api.jamendo.com") {
|
||||
icon = QIcon(":/providers/jamendo.png");
|
||||
}
|
||||
}
|
||||
pixmap = icon.pixmap(size.height());
|
||||
|
Loading…
Reference in New Issue
Block a user