don't seek if minute seek value is 0
[enigma2.git] / lib / python / Screens / InfoBarGenerics.py
index f8ac8fd..fa773d8 100644 (file)
@@ -640,13 +640,14 @@ class InfoBarPVR:
                
        def fwdSeekTo(self, minutes):
                print "Seek", minutes, "minutes forward"
-               service = self.session.nav.getCurrentService()
-               if service is None:
-                       return
-               seekable = service.seek()
-               if seekable is None:
-                       return
-               seekable.seekRelative(1, minutes * 60 * 90000)
+               if minutes != 0:
+                       service = self.session.nav.getCurrentService()
+                       if service is None:
+                               return
+                       seekable = service.seek()
+                       if seekable is None:
+                               return
+                       seekable.seekRelative(1, minutes * 60 * 90000)
        
        def rwdTimerFire(self):
                self.rwdKeyTimer.stop()