Refresh view when playback stopped
This commit is contained in:
parent
3d5a3e9bfb
commit
bbfd612137
1 changed files with 4 additions and 0 deletions
|
@ -72,6 +72,10 @@ class KodiMonitor(xbmc.Monitor):
|
||||||
if method == "Player.OnPlay":
|
if method == "Player.OnPlay":
|
||||||
self.PlayBackStart(data)
|
self.PlayBackStart(data)
|
||||||
|
|
||||||
|
elif method == "Player.OnStop":
|
||||||
|
# Should refresh our video nodes, e.g. on deck
|
||||||
|
xbmc.executebuiltin('Container.Refresh')
|
||||||
|
|
||||||
elif method == "VideoLibrary.OnUpdate":
|
elif method == "VideoLibrary.OnUpdate":
|
||||||
# Manually marking as watched/unwatched
|
# Manually marking as watched/unwatched
|
||||||
playcount = data.get('playcount')
|
playcount = data.get('playcount')
|
||||||
|
|
Loading…
Add table
Reference in a new issue