From a783efd0d75537c15954b945304220668d1584b4 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Fri, 20 Apr 2018 15:18:20 +0200 Subject: [PATCH] Added status method to media.ctrl plugin --- platypush/plugins/media/ctrl.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/platypush/plugins/media/ctrl.py b/platypush/plugins/media/ctrl.py index dec530c6b3..335dbc4831 100644 --- a/platypush/plugins/media/ctrl.py +++ b/platypush/plugins/media/ctrl.py @@ -130,5 +130,10 @@ class MediaCtrlPlugin(Plugin): if plugin: return plugin.previous() + def status(self): + plugin = self._get_playing_plugin() + if plugin: return plugin.status() + + # vim:sw=4:ts=4:et: