fixed typo

This commit is contained in:
Martin Wagner 2020-09-26 13:29:31 +02:00
parent 9478295978
commit a03ce82f3b

View File

@ -314,6 +314,7 @@ class MPRISInterface(dbus.service.Object): # TODO emit Seeked if needed
http://www.freedesktop.org/wiki/Specifications/mpris-spec/metadata http://www.freedesktop.org/wiki/Specifications/mpris-spec/metadata
""" """
mpd_meta=self._client.wrapped_call("currentsong") mpd_meta=self._client.wrapped_call("currentsong")
self._metadata={}
for tag, xesam_tag in (("album","album"),("title","title"),("track","trackNumber"),("disc","discNumber"),("date","contentCreated")): for tag, xesam_tag in (("album","album"),("title","title"),("track","trackNumber"),("disc","discNumber"),("date","contentCreated")):
if tag in mpd_meta: if tag in mpd_meta:
self._metadata["xesam:{}".format(xesam_tag)]=mpd_meta[tag] self._metadata["xesam:{}".format(xesam_tag)]=mpd_meta[tag]