forked from platypush/platypush
Don't fail if a media plugin can't be imported
This commit is contained in:
parent
86ebc4fae9
commit
673351db51
1 changed files with 5 additions and 1 deletions
|
@ -65,7 +65,11 @@ class MediaCtrlPlugin(Plugin):
|
|||
]
|
||||
|
||||
if configured_media_plugins:
|
||||
try:
|
||||
plugin = get_plugin(configured_media_plugins[0])
|
||||
except:
|
||||
pass
|
||||
|
||||
status = plugin.status().output
|
||||
if status.get('state') == PlayerState.PLAY.value or status.get('state') == PlayerState.PAUSE.value:
|
||||
return plugin
|
||||
|
|
Loading…
Reference in a new issue