mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 18:26:15 +00:00
Prevent empty selection for libraries
This commit is contained in:
parent
e6556b28d1
commit
a36c85dd50
1 changed files with 6 additions and 0 deletions
|
@ -269,6 +269,9 @@ class Service(xbmc.Monitor):
|
||||||
self.library_thread.select_libraries(method)
|
self.library_thread.select_libraries(method)
|
||||||
|
|
||||||
elif method == 'SyncLibrary':
|
elif method == 'SyncLibrary':
|
||||||
|
if not data.get('Id'):
|
||||||
|
return
|
||||||
|
|
||||||
libraries = data['Id'].split(',')
|
libraries = data['Id'].split(',')
|
||||||
|
|
||||||
for lib in libraries:
|
for lib in libraries:
|
||||||
|
@ -277,6 +280,9 @@ class Service(xbmc.Monitor):
|
||||||
xbmc.executebuiltin("Container.Refresh")
|
xbmc.executebuiltin("Container.Refresh")
|
||||||
|
|
||||||
elif method == 'RepairLibrary':
|
elif method == 'RepairLibrary':
|
||||||
|
if not data.get('Id'):
|
||||||
|
return
|
||||||
|
|
||||||
libraries = data['Id'].split(',')
|
libraries = data['Id'].split(',')
|
||||||
|
|
||||||
for lib in libraries:
|
for lib in libraries:
|
||||||
|
|
Loading…
Reference in a new issue