mirror of
https://github.com/strawberrymusicplayer/strawberry
synced 2025-01-15 10:08:08 +01:00
Fix Mpris2 AlbumCoverLoaded
This commit is contained in:
parent
af17b0015b
commit
f10d3f86cc
@ -394,8 +394,8 @@ void Mpris2::AlbumCoverLoaded(const Song &song, const QUrl &cover_url, const QIm
|
||||
using mpris::AddMetadata;
|
||||
AddMetadata("mpris:trackid", current_track_id(), &last_metadata_);
|
||||
|
||||
if (!cover_url.isValid()) {
|
||||
AddMetadata("mpris:artUrl", cover_url.toLocalFile(), &last_metadata_);
|
||||
if (cover_url.isValid()) {
|
||||
AddMetadata("mpris:artUrl", cover_url.toString(), &last_metadata_);
|
||||
}
|
||||
|
||||
AddMetadata("year", song.year(), &last_metadata_);
|
||||
|
Loading…
Reference in New Issue
Block a user