forked from platypush/platypush
Another fix bites the dust
This commit is contained in:
parent
31a7ecee03
commit
7e1d232942
1 changed files with 3 additions and 4 deletions
|
@ -80,13 +80,12 @@ class MediaCtrlPlugin(Plugin):
|
||||||
except:
|
except:
|
||||||
try:
|
try:
|
||||||
player = get_plugin(plugin, reload=True)
|
player = get_plugin(plugin, reload=True)
|
||||||
|
status = player.status().output
|
||||||
|
if status['state'] == PlayerState.PLAY.value or status['state'] == PlayerState.PAUSE.value:
|
||||||
|
return player
|
||||||
except:
|
except:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
status = player.status().output
|
|
||||||
if status['state'] == PlayerState.PLAY.value or status['state'] == PlayerState.PAUSE.value:
|
|
||||||
return player
|
|
||||||
|
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue