Refresh view when playback stopped

This commit is contained in:
tomkat83 2016-04-08 13:51:29 +02:00
parent 3d5a3e9bfb
commit bbfd612137

View file

@ -72,6 +72,10 @@ class KodiMonitor(xbmc.Monitor):
if method == "Player.OnPlay":
self.PlayBackStart(data)
elif method == "Player.OnStop":
# Should refresh our video nodes, e.g. on deck
xbmc.executebuiltin('Container.Refresh')
elif method == "VideoLibrary.OnUpdate":
# Manually marking as watched/unwatched
playcount = data.get('playcount')