From 4858dbc060b9f14257867b047cf02449edba7dc3 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Thu, 4 Feb 2021 01:56:28 +0100 Subject: [PATCH] Back/forward seek changed from 60 to 30 --- platypush/plugins/media/chromecast.py | 4 ++-- platypush/plugins/media/kodi.py | 8 ++++---- platypush/plugins/media/mplayer.py | 8 ++++---- platypush/plugins/media/mpv.py | 8 ++++---- platypush/plugins/media/vlc.py | 8 ++++---- 5 files changed, 18 insertions(+), 18 deletions(-) diff --git a/platypush/plugins/media/chromecast.py b/platypush/plugins/media/chromecast.py index 177224759..62cacb95f 100644 --- a/platypush/plugins/media/chromecast.py +++ b/platypush/plugins/media/chromecast.py @@ -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: diff --git a/platypush/plugins/media/kodi.py b/platypush/plugins/media/kodi.py index b105def83..d7f6fe65b 100644 --- a/platypush/plugins/media/kodi.py +++ b/platypush/plugins/media/kodi.py @@ -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 """ diff --git a/platypush/plugins/media/mplayer.py b/platypush/plugins/media/mplayer.py index 36fbea8f0..5b7619108 100644 --- a/platypush/plugins/media/mplayer.py +++ b/platypush/plugins/media/mplayer.py @@ -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() diff --git a/platypush/plugins/media/mpv.py b/platypush/plugins/media/mpv.py index b0d9735fb..0ffc09571 100644 --- a/platypush/plugins/media/mpv.py +++ b/platypush/plugins/media/mpv.py @@ -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: diff --git a/platypush/plugins/media/vlc.py b/platypush/plugins/media/vlc.py index 3336d3cc7..1c29924cc 100644 --- a/platypush/plugins/media/vlc.py +++ b/platypush/plugins/media/vlc.py @@ -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'