[rhythmbox: 1/2] fixes #1566 (bug in webremote plugin)



commit d5cbc9c9597cbba676633dc16557b6a93ecccc91
Author: Quentin de Metz <quentin de me tz>
Date:   Wed Nov 7 17:42:35 2018 +0100

    fixes #1566 (bug in webremote plugin)

 plugins/webremote/webremote.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/plugins/webremote/webremote.py b/plugins/webremote/webremote.py
index 96cc0a9bb..1f6c045f5 100644
--- a/plugins/webremote/webremote.py
+++ b/plugins/webremote/webremote.py
@@ -534,6 +534,10 @@ class WebRemotePlugin(GObject.Object, Peas.Activatable):
                shell = self.object
                self.db = shell.props.db
 
+               self.artcache = os.path.join(RB.user_cache_dir(), "album-art", "")
+               self.art_store = RB.ExtDB(name="album-art")
+               self.art_store.connect("added", self.art_added_cb)
+
                self.shell_player = shell.props.shell_player
                self.shell_player.connect("playing-song-changed", self.playing_song_changed_cb)
                self.shell_player.connect("playing-song-property-changed", 
self.playing_song_property_changed_cb)
@@ -553,10 +557,6 @@ class WebRemotePlugin(GObject.Object, Peas.Activatable):
                self.http_listen()
                self.http_server.run_async()
 
-               self.artcache = os.path.join(RB.user_cache_dir(), "album-art", "")
-               self.art_store = RB.ExtDB(name="album-art")
-               self.art_store.connect("added", self.art_added_cb)
-
 
        def do_deactivate(self):
                self.dispatch({'shutdown': True })


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