Commit 063c97ff authored by Rafaël Carré's avatar Rafaël Carré

MPRIS metadata required field is "location", not "URI"

parent 2f001223
...@@ -76,7 +76,7 @@ def NameOwnerChanged(name, new, old): ...@@ -76,7 +76,7 @@ def NameOwnerChanged(name, new, old):
# Callback for when "TrackChange" signal is emitted # Callback for when "TrackChange" signal is emitted
def TrackChange(Track): def TrackChange(Track):
# the only mandatory metadata is "URI" # the only mandatory metadata is "location"
try: try:
a = Track["artist"] a = Track["artist"]
except: except:
...@@ -84,7 +84,7 @@ def TrackChange(Track): ...@@ -84,7 +84,7 @@ def TrackChange(Track):
try: try:
t = Track["title"] t = Track["title"]
except: except:
t = Track["URI"] t = Track["location"]
try: try:
length = Track["length"] length = Track["length"]
except: except:
...@@ -194,7 +194,7 @@ def update(widget): ...@@ -194,7 +194,7 @@ def update(widget):
t = "" t = ""
if t == "": if t == "":
try: try:
t = Track["URI"] t = Track["location"]
except: except:
t = "" t = ""
l_artist.set_text(a) l_artist.set_text(a)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment