Another fix bites the dust

This commit is contained in:
Fabio Manganiello 2021-02-03 17:47:33 +01:00
parent 31a7ecee03
commit 7e1d232942

View file

@ -80,12 +80,11 @@ class MediaCtrlPlugin(Plugin):
except: except:
try: try:
player = get_plugin(plugin, reload=True) player = get_plugin(plugin, reload=True)
except:
continue
status = player.status().output status = player.status().output
if status['state'] == PlayerState.PLAY.value or status['state'] == PlayerState.PAUSE.value: if status['state'] == PlayerState.PLAY.value or status['state'] == PlayerState.PAUSE.value:
return player return player
except:
continue
return None return None