Back/forward seek changed from 60 to 30
This commit is contained in:
parent
269000ab85
commit
4858dbc060
5 changed files with 18 additions and 18 deletions
|
@ -383,7 +383,7 @@ class MediaChromecastPlugin(MediaPlugin):
|
|||
return self.forward(chromecast=chromecast, offset=position)
|
||||
|
||||
@action
|
||||
def back(self, chromecast=None, offset=60):
|
||||
def back(self, chromecast=None, offset=30):
|
||||
cast = self.get_chromecast(chromecast or self.chromecast)
|
||||
mc = cast.media_controller
|
||||
if mc.status.current_time:
|
||||
|
@ -393,7 +393,7 @@ class MediaChromecastPlugin(MediaPlugin):
|
|||
return self.status(chromecast=chromecast)
|
||||
|
||||
@action
|
||||
def forward(self, chromecast=None, offset=60):
|
||||
def forward(self, chromecast=None, offset=30):
|
||||
cast = self.get_chromecast(chromecast or self.chromecast)
|
||||
mc = cast.media_controller
|
||||
if mc.status.current_time:
|
||||
|
|
|
@ -525,11 +525,11 @@ class MediaKodiPlugin(MediaPlugin):
|
|||
return self.seek(position=position, player_id=player_id, *args, **kwargs)
|
||||
|
||||
@action
|
||||
def back(self, offset=60, player_id=None, *args, **kwargs):
|
||||
def back(self, offset=30, player_id=None, *args, **kwargs):
|
||||
"""
|
||||
Move the player execution backward by delta_seconds
|
||||
|
||||
:param offset: Backward seek duration (default: 60 seconds)
|
||||
:param offset: Backward seek duration (default: 30 seconds)
|
||||
:type offset: float
|
||||
"""
|
||||
|
||||
|
@ -545,11 +545,11 @@ class MediaKodiPlugin(MediaPlugin):
|
|||
return self.seek(player_id=player_id, position=position)
|
||||
|
||||
@action
|
||||
def forward(self, offset=60, player_id=None, *args, **kwargs):
|
||||
def forward(self, offset=30, player_id=None, *args, **kwargs):
|
||||
"""
|
||||
Move the player execution forward by delta_seconds
|
||||
|
||||
:param offset: Forward seek duration (default: 60 seconds)
|
||||
:param offset: Forward seek duration (default: 30 seconds)
|
||||
:type offset: float
|
||||
"""
|
||||
|
||||
|
|
|
@ -308,14 +308,14 @@ class MediaMplayerPlugin(MediaPlugin):
|
|||
return self.status()
|
||||
|
||||
@action
|
||||
def back(self, offset=60.0):
|
||||
""" Back by (default: 60) seconds """
|
||||
def back(self, offset=30.0):
|
||||
""" Back by (default: 30) seconds """
|
||||
self.step_property('time_pos', -offset)
|
||||
return self.status()
|
||||
|
||||
@action
|
||||
def forward(self, offset=60.0):
|
||||
""" Forward by (default: 60) seconds """
|
||||
def forward(self, offset=30.0):
|
||||
""" Forward by (default: 30) seconds """
|
||||
self.step_property('time_pos', offset)
|
||||
return self.status()
|
||||
|
||||
|
|
|
@ -216,8 +216,8 @@ class MediaMpvPlugin(MediaPlugin):
|
|||
return self.status()
|
||||
|
||||
@action
|
||||
def back(self, offset=60.0):
|
||||
""" Back by (default: 60) seconds """
|
||||
def back(self, offset=30.0):
|
||||
""" Back by (default: 30) seconds """
|
||||
if not self._player:
|
||||
return None, 'No mpv instance is running'
|
||||
if not self._player.seekable:
|
||||
|
@ -226,8 +226,8 @@ class MediaMpvPlugin(MediaPlugin):
|
|||
return self.seek(pos)
|
||||
|
||||
@action
|
||||
def forward(self, offset=60.0):
|
||||
""" Forward by (default: 60) seconds """
|
||||
def forward(self, offset=30.0):
|
||||
""" Forward by (default: 30) seconds """
|
||||
if not self._player:
|
||||
return None, 'No mpv instance is running'
|
||||
if not self._player.seekable:
|
||||
|
|
|
@ -258,8 +258,8 @@ class MediaVlcPlugin(MediaPlugin):
|
|||
return self.status()
|
||||
|
||||
@action
|
||||
def back(self, offset=60.0):
|
||||
""" Back by (default: 60) seconds """
|
||||
def back(self, offset=30.0):
|
||||
""" Back by (default: 30) seconds """
|
||||
if not self._player:
|
||||
return None, 'No vlc instance is running'
|
||||
|
||||
|
@ -271,8 +271,8 @@ class MediaVlcPlugin(MediaPlugin):
|
|||
return self.seek(pos)
|
||||
|
||||
@action
|
||||
def forward(self, offset=60.0):
|
||||
""" Forward by (default: 60) seconds """
|
||||
def forward(self, offset=30.0):
|
||||
""" Forward by (default: 30) seconds """
|
||||
if not self._player:
|
||||
return None, 'No vlc instance is running'
|
||||
|
||||
|
|
Loading…
Reference in a new issue