[gnome-music] view: Set album title as Unknown Album if empty in Playlists view



commit 816dfbcf088876691b7ba0647a93d420cb18fb1a
Author: Arnel A. Borja <arnelborja src gnome org>
Date:   Thu Apr 3 19:15:11 2014 +0800

    view: Set album title as Unknown Album if empty in Playlists view

 gnomemusic/view.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gnomemusic/view.py b/gnomemusic/view.py
index 1f06f7d..727ffea 100644
--- a/gnomemusic/view.py
+++ b/gnomemusic/view.py
@@ -891,7 +891,7 @@ class Playlist(ViewContainer):
     def _on_list_widget_type_render(self, coll, cell, model, _iter, data):
         item = model.get_value(_iter, 5)
         if item:
-            cell.set_property('text', item.get_string(Grl.METADATA_KEY_ALBUM))
+            cell.set_property('text', item.get_string(Grl.METADATA_KEY_ALBUM) or _("Unknown Album"))
 
     def _populate(self):
         self._init = True


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