[gnome-music/freeze-break: 69/107] playlists: Skip unexistent files



commit a3ef456d1daac6ea04db7e71da418d99bcac24e4
Author: Arnel A. Borja <arnelborja src gnome org>
Date:   Thu Sep 5 00:08:09 2013 +0800

    playlists: Skip unexistent files

 gnomemusic/playlists.py |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/gnomemusic/playlists.py b/gnomemusic/playlists.py
index 6e007fc..06125bc 100644
--- a/gnomemusic/playlists.py
+++ b/gnomemusic/playlists.py
@@ -61,4 +61,8 @@ class Playlists:
         )
 
     def _on_entry_parsed(self, parser, uri, metadata, data=None):
+        filename = GLib.filename_from_uri(uri)[0]
+        if filename and not os.path.isfile(filename):
+            return
+
         grilo.get_media_from_uri(uri, data)


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