Fix video library sometimes not updating

This commit is contained in:
croneter 2018-11-25 20:36:54 +01:00
parent 2ceb0cd7a2
commit 202d33d7c0

View file

@ -16,12 +16,6 @@ def update_kodi_library(video=True, music=True):
"""
Updates the Kodi library and thus refreshes the Kodi views and widgets
"""
if xbmc.getCondVisibility('Container.Content(musicvideos)') or \
xbmc.getCondVisibility('Window.IsMedia'):
# Prevent cursor from moving
xbmc.executebuiltin('Container.Refresh')
else:
# Update widgets
if video:
xbmc.executebuiltin('UpdateLibrary(video)')
if music: