Quick fix
This commit is contained in:
parent
346bd9602d
commit
31a7ecee03
1 changed files with 4 additions and 4 deletions
|
@ -68,11 +68,11 @@ class MediaCtrlPlugin(Plugin):
|
||||||
try:
|
try:
|
||||||
plugin = get_plugin(configured_media_plugins[0])
|
plugin = get_plugin(configured_media_plugins[0])
|
||||||
status = plugin.status().output
|
status = plugin.status().output
|
||||||
except:
|
if status.get('state') == PlayerState.PLAY.value or status.get('state') == PlayerState.PAUSE.value:
|
||||||
continue
|
return plugin
|
||||||
|
|
||||||
if status.get('state') == PlayerState.PLAY.value or status.get('state') == PlayerState.PAUSE.value:
|
except:
|
||||||
return plugin
|
pass
|
||||||
|
|
||||||
for plugin in MediaPlugin._supported_media_plugins:
|
for plugin in MediaPlugin._supported_media_plugins:
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in a new issue