This commit is contained in:
Fabio Manganiello 2019-02-21 01:49:43 +01:00
parent 97e1dfacdf
commit 6222747730

View file

@ -57,7 +57,7 @@ class MediaCtrlPlugin(Plugin):
def _get_playing_plugin(self): def _get_playing_plugin(self):
if self.plugin: if self.plugin:
status = self.plugin.status() status = self.plugin.status()
if status['state'] == PlayerState.PLAY or state['state'] == PlayerState.PAUSE: if status['state'] == PlayerState.PLAY.value or state['state'] == PlayerState.PAUSE.value:
return self.plugin return self.plugin
for plugin in self._supported_plugins: for plugin in self._supported_plugins: