mirror of
https://github.com/SoongNoonien/mpdevil.git
synced 2023-08-10 21:12:44 +03:00
removed metadata fallback in MPRIS interface
This commit is contained in:
parent
9d1a940cb9
commit
9478295978
@ -314,7 +314,6 @@ class MPRISInterface(dbus.service.Object): # TODO emit Seeked if needed
|
||||
http://www.freedesktop.org/wiki/Specifications/mpris-spec/metadata
|
||||
"""
|
||||
mpd_meta=self._client.wrapped_call("currentsong")
|
||||
self._metadata={"xesam:title": _("Unknown Title")} # fallback
|
||||
for tag, xesam_tag in (("album","album"),("title","title"),("track","trackNumber"),("disc","discNumber"),("date","contentCreated")):
|
||||
if tag in mpd_meta:
|
||||
self._metadata["xesam:{}".format(xesam_tag)]=mpd_meta[tag]
|
||||
|
Loading…
Reference in New Issue
Block a user