[gnome-music] Print some more info why the file cannot be played



commit 2d4b7a9f4b730480ae4ba64f837bc8daa85f69bc
Author: Vadim Rutkovsky <vrutkovs redhat com>
Date:   Wed Feb 26 17:15:42 2014 +0100

    Print some more info why the file cannot be played

 gnomemusic/player.py |    1 +
 gnomemusic/view.py   |    1 +
 2 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gnomemusic/player.py b/gnomemusic/player.py
index 1e6dd13..788929e 100644
--- a/gnomemusic/player.py
+++ b/gnomemusic/player.py
@@ -106,6 +106,7 @@ class Player(GObject.GObject):
     def discover_item(self, item, callback, data=None):
         url = item.get_url()
         if not url:
+            print("The item %s doesn't have a URL set" % item)
             return
 
         obj = (callback, data)
diff --git a/gnomemusic/view.py b/gnomemusic/view.py
index cc3b83b..0dadae8 100644
--- a/gnomemusic/view.py
+++ b/gnomemusic/view.py
@@ -237,6 +237,7 @@ class ViewContainer(Stack):
 
     def _on_discovered(self, info, error, _iter):
         if error:
+            print("Info %s: error: %s" % (info, error))
             self._model.set(_iter, [8, 10], [self.errorIconName, True])
 
     def _add_item(self, source, param, item, remaining):


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