[gnome-music/gnome-3-12] mpris: Fix some typos
- From: Vadim Rutkovsky <vrutkovsky src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/gnome-3-12] mpris: Fix some typos
- Date: Mon, 12 May 2014 16:08:39 +0000 (UTC)
commit de11c36b418756ecb3a8919f1a29b36327be549a
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]