From 202d33d7c0a31cf7fc5618821746695494ada94c Mon Sep 17 00:00:00 2001 From: croneter Date: Sun, 25 Nov 2018 20:36:54 +0100 Subject: [PATCH] Fix video library sometimes not updating --- resources/lib/library_sync/common.py | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/resources/lib/library_sync/common.py b/resources/lib/library_sync/common.py index 8e7477b5..06043b6d 100644 --- a/resources/lib/library_sync/common.py +++ b/resources/lib/library_sync/common.py @@ -16,13 +16,7 @@ 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: - xbmc.executebuiltin('UpdateLibrary(music)') + if video: + xbmc.executebuiltin('UpdateLibrary(video)') + if music: + xbmc.executebuiltin('UpdateLibrary(music)')