[gnome-music/wip/mschraal/player-factor-out-gstreamer] smoothscale: Remove old seconds tick



commit 02a540d5717b7513a8983106699e982b7ded222a
Author: Marinus Schraal <mschraal gnome org>
Date:   Sat Feb 17 20:13:42 2018 +0100

    smoothscale: Remove old seconds tick

 gnomemusic/widgets/smoothscale.py | 21 ---------------------
 1 file changed, 21 deletions(-)
---
diff --git a/gnomemusic/widgets/smoothscale.py b/gnomemusic/widgets/smoothscale.py
index 6261e3d..4316538 100644
--- a/gnomemusic/widgets/smoothscale.py
+++ b/gnomemusic/widgets/smoothscale.py
@@ -227,25 +227,4 @@ class SmoothScale(Gtk.Scale):
     @log
     def _update_seconds_callback(self):
         self.emit('seconds-tick')
-        return True
-
-        position = self._player.position
-        if position > 0:
-            self.played_seconds += self._seconds_period / 1000
-            try:
-                percentage = self.played_seconds / self.duration
-                if (not self._lastfm.scrobbled
-                        and percentage > 0.4):
-                    current_media = self.get_current_media()
-                    if current_media:
-                        # FIXME: we should not need to update static
-                        # playlists here but removing it may introduce
-                        # a bug. So, we keep it for the time being.
-                        playlists.update_all_static_playlists()
-                        grilo.bump_play_count(current_media)
-                        grilo.set_last_played(current_media)
-                        self._lastfm.scrobble(current_media, self._time_stamp)
-
-            except Exception as e:
-                logger.warn("Error: %s, %s", e.__class__, e)
         return True
\ No newline at end of file


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