Fix update library

Only do the compare when user selects update library, also add a restart service option in the add-on settings > advanced
This commit is contained in:
angelblue05 2018-10-13 03:53:22 -05:00
parent 1174c685e9
commit 66822b6d0a
6 changed files with 28 additions and 11 deletions

View file

@ -480,12 +480,12 @@ class Library(threading.Thread):
library = libraries[x - 1]
selected_libraries.append(library['Id'])
event(modes[mode], {'Id': ','.join([libraries[x - 1]['Id'] for x in selection])})
event(modes[mode], {'Id': ','.join([libraries[x - 1]['Id'] for x in selection]), 'Update': mode == 'SyncLibrarySelection'})
def add_library(self, library_id):
def add_library(self, library_id, update=False):
try:
FullSync(self, library_id)
FullSync(self, library_id, update=update)
except Exception as error:
LOG.exception(error)