Prevent empty selection for libraries

This commit is contained in:
angelblue05 2018-09-08 04:01:14 -05:00
parent e6556b28d1
commit a36c85dd50

View file

@ -269,6 +269,9 @@ class Service(xbmc.Monitor):
self.library_thread.select_libraries(method)
elif method == 'SyncLibrary':
if not data.get('Id'):
return
libraries = data['Id'].split(',')
for lib in libraries:
@ -277,6 +280,9 @@ class Service(xbmc.Monitor):
xbmc.executebuiltin("Container.Refresh")
elif method == 'RepairLibrary':
if not data.get('Id'):
return
libraries = data['Id'].split(',')
for lib in libraries: