mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-05-16 14:25:09 +00:00
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:
parent
1174c685e9
commit
66822b6d0a
6 changed files with 28 additions and 11 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue