[gnome-music] mpris: Fix some typos



commit b46815e0d7e6b3aadcb92027cc27e8d3203c7733
Author: Arnel Borja <arnelborja src gnome org>
Date:   Mon Apr 28 18:32:29 2014 +0800

    mpris: Fix some typos
    
    Wrong variables are being checked, which prevents the next lines to be
    executed.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=729096

 gnomemusic/mpris.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gnomemusic/mpris.py b/gnomemusic/mpris.py
index 3f1ed33..e3125ca 100644
--- a/gnomemusic/mpris.py
+++ b/gnomemusic/mpris.py
@@ -160,14 +160,14 @@ class MediaPlayer2Service(dbus.service.Object):
 
         try:
             lastUsed = media.get_last_played()
-            assert genre is not None
+            assert lastUsed is not None
             metadata['xesam:lastUsed'] = lastUsed
         except:
             pass
 
         try:
             artUrl = media.get_thumbnail()
-            assert genre is not None
+            assert artUrl is not None
             metadata['mpris:artUrl'] = artUrl
         except:
             pass


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]