From 1cbd65861ccd012ccd0cc5cce4ecd208eade5dc6 Mon Sep 17 00:00:00 2001 From: croneter Date: Wed, 12 Jun 2019 12:18:09 +0200 Subject: [PATCH] Add additional info dialog for PKC synching playlists --- resources/language/resource.language.en_gb/strings.po | 2 +- resources/lib/library_sync/full_sync.py | 10 +++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/resources/language/resource.language.en_gb/strings.po b/resources/language/resource.language.en_gb/strings.po index b4a82a8b..fc35632d 100644 --- a/resources/language/resource.language.en_gb/strings.po +++ b/resources/language/resource.language.en_gb/strings.po @@ -1398,7 +1398,7 @@ msgstr "" # Shown during sync process msgctxt "#39715" -msgid "items" +msgid "Synching playlists" msgstr "" # Error message if an xml, e.g. advancedsettings.xml cannot be parsed (xml is screwed up; formated the wrong way). Do NOT replace {0} and {1}! diff --git a/resources/lib/library_sync/full_sync.py b/resources/lib/library_sync/full_sync.py index 218bf23d..09701700 100644 --- a/resources/lib/library_sync/full_sync.py +++ b/resources/lib/library_sync/full_sync.py @@ -428,9 +428,13 @@ class FullSync(common.fullsync_mixin): if self.isCanceled() or not self.full_library_sync(): self.successful = False return - if common.PLAYLIST_SYNC_ENABLED and not playlists.full_sync(): - self.successful = False - return + if common.PLAYLIST_SYNC_ENABLED: + if self.dialog: + self.dialog.close() + self.dialog = xbmcgui.DialogProgressBG() + self.dialog.create(utils.lang(39715)) + if not playlists.full_sync(): + self.successful = False finally: common.update_kodi_library(video=True, music=True) if self.dialog: