Merge pull request #880 from croneter/playlist-sync-dialog

Add additional info dialog for PKC synching playlists
This commit is contained in:
croneter 2019-06-12 13:04:04 +02:00 committed by GitHub
commit 563e86c8db
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 4 deletions

View file

@ -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}!

View file

@ -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: