[gnome-music] static playlists now update from player.py at time of scrobble rather than from playlists.update_pla



commit 95f81e49e4a0579abb4b58206c1f5c6546773209
Author: Maia <maia mcc gmail com>
Date:   Wed Jan 21 12:04:33 2015 -0500

    static playlists now update from player.py at time of scrobble rather than from playlists.update_playcount
    
    https://bugzilla.gnome.org/show_bug.cgi?id=743310

 gnomemusic/player.py    |    1 +
 gnomemusic/playlists.py |    2 --
 2 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/gnomemusic/player.py b/gnomemusic/player.py
index 0b3d9f8..684aef6 100644
--- a/gnomemusic/player.py
+++ b/gnomemusic/player.py
@@ -686,6 +686,7 @@ class Player(GObject.GObject):
                     self.scrobbled = True
                     playlists.update_playcount(just_played_url)
                     playlists.update_last_played(just_played_url)
+                    playlists.update_all_static_playlists()
             except Exception as e:
                 logger.warn("Error: %s, %s" % (e.__class__, e))
         return True
diff --git a/gnomemusic/playlists.py b/gnomemusic/playlists.py
index b9840b9..1b7c1ca 100644
--- a/gnomemusic/playlists.py
+++ b/gnomemusic/playlists.py
@@ -124,8 +124,6 @@ class Playlists(GObject.GObject):
     def update_playcount(self, song_url):
         query = Query.update_playcount(song_url)
         self.tracker.update(query, GLib.PRIORITY_DEFAULT, None)
-        self.update_all_static_playlists()  # not the best place to put this func;
-        # maybe a 'scrobble' func that updates playcount & last played and then updates playlists?
 
     @log
     def update_last_played(self, song_url):


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