Add error notification is full sync is unsuccessful

This commit is contained in:
croneter 2019-01-30 18:05:28 +01:00
parent 5298370413
commit c388789fbd

View file

@ -415,6 +415,12 @@ class FullSync(common.fullsync_mixin):
self.dialog.close()
if self.threader:
self.threader.shutdown()
if not self.successful and not self.isCanceled():
# "ERROR in library sync"
utils.dialog('notification',
heading='{plex}',
message=utils.lang(39410),
icon='{error}')
if self.callback:
self.callback(self.successful)
LOG.info('Done full_sync')