From bb50e6a63726e8c644c8c4e7c76621f71b375d97 Mon Sep 17 00:00:00 2001 From: jackun Date: Thu, 16 Jul 2020 14:24:03 +0300 Subject: [PATCH] [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. --- src/dbus.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/dbus.cpp b/src/dbus.cpp index fbd1ef52..a7c23911 100644 --- a/src/dbus.cpp +++ b/src/dbus.cpp @@ -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; } }