From 6fe1ed44ada50074f1e6e167305b17c6c2bfa719 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Sat, 13 Jan 2024 22:39:33 +0100 Subject: [PATCH] [media] Fixed base interface of `media.seek` and `media.set_position`. --- platypush/plugins/media/__init__.py | 4 ++-- platypush/plugins/media/vlc/__init__.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/platypush/plugins/media/__init__.py b/platypush/plugins/media/__init__.py index 3316b6a7f5..18106ae94e 100644 --- a/platypush/plugins/media/__init__.py +++ b/platypush/plugins/media/__init__.py @@ -470,12 +470,12 @@ class MediaPlugin(Plugin, ABC): @action @abstractmethod - def seek(self, **kwargs): + def seek(self, position, **kwargs): raise self._NOT_IMPLEMENTED_ERR @action @abstractmethod - def set_position(self, **kwargs): + def set_position(self, position, **kwargs): raise self._NOT_IMPLEMENTED_ERR @action diff --git a/platypush/plugins/media/vlc/__init__.py b/platypush/plugins/media/vlc/__init__.py index a80a7bef4f..3522acbc61 100644 --- a/platypush/plugins/media/vlc/__init__.py +++ b/platypush/plugins/media/vlc/__init__.py @@ -279,7 +279,7 @@ class MediaVlcPlugin(MediaPlugin): return status @action - def seek(self, position: float): + def seek(self, position: float, **__): """ Seek backward/forward by the specified number of seconds