]> git.sesse.net Git - vlc/commitdiff
MPRIS metadata required field is "location", not "URI"
authorRafaël Carré <rafael.carre@gmail.com>
Mon, 12 Jul 2010 13:32:48 +0000 (15:32 +0200)
committerRafaël Carré <rafael.carre@gmail.com>
Mon, 12 Jul 2010 13:32:48 +0000 (15:32 +0200)
extras/misc/mpris.py

index 32aa79122d6132ee4fa1c650dd1585f8146708f4..67a6e79d6ec7ef7767bf952d3a42a41a6a757d1c 100755 (executable)
@@ -76,7 +76,7 @@ def NameOwnerChanged(name, new, old):
 
 # Callback for when "TrackChange" signal is emitted
 def TrackChange(Track):
-    # the only mandatory metadata is "URI"
+    # the only mandatory metadata is "location"
     try:
         a = Track["artist"]
     except:
@@ -84,7 +84,7 @@ def TrackChange(Track):
     try:
         t = Track["title"]
     except:
-        t = Track["URI"]
+        t = Track["location"]
     try:
         length = Track["length"]
     except:
@@ -194,7 +194,7 @@ def update(widget):
         t = ""
     if t == "":
         try:
-            t = Track["URI"]
+            t = Track["location"]
         except:
             t = ""
     l_artist.set_text(a)