Force music.mpd plugin reload when the mpd backend fails to get the state

This commit is contained in:
Fabio Manganiello 2019-01-12 02:15:24 +01:00
parent bb8a21ed13
commit 3587fa7cb4
1 changed files with 1 additions and 0 deletions

View File

@ -68,6 +68,7 @@ class MusicMpdBackend(Backend):
success = True
except Exception as e:
self.logger.debug(e)
get_plugin('music.mpd', reload=True)
if not state: state = last_state
if not playlist: playlist = last_playlist
if not track: track = last_track