mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 10:16:11 +00:00
Don't find ancestors on userdata updates
This commit is contained in:
parent
29c2f6126a
commit
75ac8ef1b8
1 changed files with 19 additions and 22 deletions
|
@ -672,10 +672,7 @@ class UserDataWorker(threading.Thread):
|
||||||
except Queue.Empty:
|
except Queue.Empty:
|
||||||
break
|
break
|
||||||
|
|
||||||
# Verify that the updated item is in our local whitelist
|
default_args = (self.server, jellyfindb, kodidb, self.direct_path)
|
||||||
library = find_library(self.server, item)
|
|
||||||
if library:
|
|
||||||
default_args = (self.server, jellyfindb, kodidb, self.direct_path, library)
|
|
||||||
try:
|
try:
|
||||||
if item['Type'] == 'Movie':
|
if item['Type'] == 'Movie':
|
||||||
Movies(*default_args).userdata(item)
|
Movies(*default_args).userdata(item)
|
||||||
|
@ -688,7 +685,7 @@ class UserDataWorker(threading.Thread):
|
||||||
elif item['Type'] == 'AlbumArtist':
|
elif item['Type'] == 'AlbumArtist':
|
||||||
Music(*default_args).albumartist(item)
|
Music(*default_args).albumartist(item)
|
||||||
elif item['Type'] == 'Audio':
|
elif item['Type'] == 'Audio':
|
||||||
Music(*default_args).song(item)
|
Music(*default_args).userdata(item)
|
||||||
except LibraryException as error:
|
except LibraryException as error:
|
||||||
if error.status == 'StopCalled':
|
if error.status == 'StopCalled':
|
||||||
break
|
break
|
||||||
|
|
Loading…
Reference in a new issue