[dbus] Use "xesam:url" to force metadata update

If file has no other metadata, clear old metadata by using
"xesam:url" to detect new file being played.
pull/288/head
jackun 4 years ago
parent f74b4bccd9
commit bb50e6a637
No known key found for this signature in database
GPG Key ID: 119DB3F1D05A9ED3

@ -38,6 +38,9 @@ static void assign_metadata_value(metadata& meta, const std::string& key,
} else if (key == "mpris:artUrl") {
meta.artUrl = value;
meta.got_song_data = true;
} else if (key == "xesam:url") {
// HACK if there's no metadata then use this to clear old ones
meta.got_song_data = true;
}
}

Loading…
Cancel
Save