[gnome-music/freeze-break] get_path_to_playlist: use correct formatting



commit b776b4051c5f89499f7625dbcfb8417569057d87
Author: Vadim Rutkovsky <vrutkovs redhat com>
Date:   Thu Sep 12 11:09:47 2013 +0200

    get_path_to_playlist: use correct formatting

 gnomemusic/playlists.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gnomemusic/playlists.py b/gnomemusic/playlists.py
index 55ac1cf..ce6b15e 100644
--- a/gnomemusic/playlists.py
+++ b/gnomemusic/playlists.py
@@ -86,7 +86,7 @@ class Playlists(GObject.GObject):
             self.emit('playlist-deleted', playlist_name)
 
     def get_path_to_playlist(self, playlist_name):
-        return os.path.join(self.playlist_dir, playlist_name + ".pls")
+        return os.path.join(self.playlist_dir, "%s.pls" % playlist_name)
 
     def parse_playlist(self, playlist_name, callback):
         parser = TotemPlParser.Parser()


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