[gnome-music/wip/mschraal/core] player: Remove broken Playlist usage



commit 629aa23b71338467d7eed2b7fa592248aeef7b11
Author: Marinus Schraal <mschraal gnome org>
Date:   Fri Jul 12 21:00:10 2019 +0200

    player: Remove broken Playlist usage

 gnomemusic/player.py | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/gnomemusic/player.py b/gnomemusic/player.py
index fe8ef8dc..c7c449b1 100644
--- a/gnomemusic/player.py
+++ b/gnomemusic/player.py
@@ -36,13 +36,11 @@ from gi._gi import pygobject_new_full
 from gnomemusic import log
 from gnomemusic.coresong import CoreSong
 from gnomemusic.gstplayer import GstPlayer, Playback
-from gnomemusic.playlists import Playlists
 from gnomemusic.scrobbler import LastFmScrobbler
 from gnomemusic.widgets.songwidget import SongWidget
 
 
 logger = logging.getLogger(__name__)
-playlists = Playlists.get_default()
 
 
 class RepeatMode(IntEnum):
@@ -652,7 +650,8 @@ class Player(GObject.GObject):
                 # FIXME: we should not need to update smart
                 # playlists here but removing it may introduce
                 # a bug. So, we keep it for the time being.
-                playlists.update_all_smart_playlists()
+                # FIXME: Not using Playlist class anymore.
+                # playlists.update_all_smart_playlists()
                 current_song.bump_play_count()
                 current_song.set_last_played()
 


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