Quick fix

This commit is contained in:
Fabio Manganiello 2021-02-03 17:46:05 +01:00
parent 346bd9602d
commit 31a7ecee03

View file

@ -68,11 +68,11 @@ class MediaCtrlPlugin(Plugin):
try:
plugin = get_plugin(configured_media_plugins[0])
status = plugin.status().output
except:
continue
if status.get('state') == PlayerState.PLAY.value or status.get('state') == PlayerState.PAUSE.value:
return plugin
if status.get('state') == PlayerState.PLAY.value or status.get('state') == PlayerState.PAUSE.value:
return plugin
except:
pass
for plugin in MediaPlugin._supported_media_plugins:
try: