Fixed unreferenced var

This commit is contained in:
Fabio Manganiello 2021-02-03 17:41:06 +01:00
parent a1d6c4fbe4
commit 118540db8c

View file

@ -65,7 +65,7 @@ class MediaCtrlPlugin(Plugin):
]
if configured_media_plugins:
plugin = get_plugin(plugin)
plugin = get_plugin(configured_media_plugins[0])
status = plugin.status().output
if status.get('state') == PlayerState.PLAY.value or status.get('state') == PlayerState.PAUSE.value:
return plugin