From ed4b7e1da95ea36c66125fa1fb1a366635b2ce15 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Sat, 2 Feb 2019 16:36:47 +0100 Subject: [PATCH] mplayer step_property volume doesn't really work as intended --- platypush/plugins/media/mplayer.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/platypush/plugins/media/mplayer.py b/platypush/plugins/media/mplayer.py index a6018ec9..871c74a7 100644 --- a/platypush/plugins/media/mplayer.py +++ b/platypush/plugins/media/mplayer.py @@ -253,14 +253,14 @@ class MediaMplayerPlugin(MediaPlugin): self._exec('quit') @action - def voldown(self, step=100.0): + def voldown(self, step=10.0): """ Volume down by (default: 10)% """ - return self.step_property('volume', -step) + return self._exec('volume', -step*10) @action - def volup(self, step=100.0): + def volup(self, step=10.0): """ Volume up by (default: 10)% """ - return self.step_property('volume', step) + return self._exec('volume', step*10) @action def back(self, offset=60.0):