[totem/wip/hadess/mpris-can-go-next: 5/5] dbusservice: Fix Previous/Next MPRIS commands not doing anything



commit 85e27c76c2a143ad3917cc578d0b47539af24389
Author: Bastien Nocera <hadess hadess net>
Date:   Thu Feb 14 03:41:02 2019 +0100

    dbusservice: Fix Previous/Next MPRIS commands not doing anything
    
    The Next/Previous D-Bus commands never did anything because the code
    would exit early if something was playing, or something was paused.
    That's the only 2 states a video could be in when we show the MPRIS menu
    in gnome-shell.
    
    Closes: #200

 src/plugins/dbusservice/dbusservice.py | 6 ------
 1 file changed, 6 deletions(-)
---
diff --git a/src/plugins/dbusservice/dbusservice.py b/src/plugins/dbusservice/dbusservice.py
index 1233c84bd..1a5591a56 100644
--- a/src/plugins/dbusservice/dbusservice.py
+++ b/src/plugins/dbusservice/dbusservice.py
@@ -263,18 +263,12 @@ class Root (dbus.service.Object): # pylint: disable=R0904
                           in_signature = '', # pylint: disable=C0103
                           out_signature = '')
     def Next (self): # pylint: disable=C0103
-        if self.totem.is_playing () or self.totem.is_paused ():
-            return
-
         self.totem.seek_next ()
 
     @dbus.service.method (dbus_interface = 'org.mpris.MediaPlayer2.Player',
                           in_signature = '', # pylint: disable=C0103
                           out_signature = '')
     def Previous (self): # pylint: disable=C0103
-        if self.totem.is_playing () or self.totem.is_paused ():
-            return
-
         self.totem.seek_previous ()
 
     @dbus.service.method (dbus_interface = 'org.mpris.MediaPlayer2.Player',


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