mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-26 02:36:10 +00:00
Finish getitem cleanup in library
This commit is contained in:
parent
f874951cf0
commit
4e37aa9bbf
1 changed files with 12 additions and 13 deletions
|
@ -675,21 +675,20 @@ class UserDataWorker(threading.Thread):
|
||||||
except Queue.Empty:
|
except Queue.Empty:
|
||||||
break
|
break
|
||||||
|
|
||||||
|
|
||||||
|
try:
|
||||||
if item['Type'] == 'Movie':
|
if item['Type'] == 'Movie':
|
||||||
obj = Movies(self.args[0], jellyfindb, kodidb, self.args[1]).userdata(item)
|
obj = Movies(self.args[0], jellyfindb, kodidb, self.args[1]).userdata(item)
|
||||||
elif item['Type'] in ['Series', 'Season', 'Episode']:
|
elif item['Type'] in ['Series', 'Season', 'Episode']:
|
||||||
obj = TVShows(self.args[0], jellyfindb, kodidb, self.args[1]).userdata(item)
|
obj = TVShows(self.args[0], jellyfindb, kodidb, self.args[1]).userdata(item)
|
||||||
elif item['Type'] == 'MusicAlbum':
|
elif item['Type'] == 'MusicAlbum':
|
||||||
obj = Music(self.args[0], jellyfindb, kodidb, self.args[1]).album
|
obj = Music(self.args[0], jellyfindb, kodidb, self.args[1]).album(item)
|
||||||
elif item['Type'] == 'MusicArtist':
|
elif item['Type'] == 'MusicArtist':
|
||||||
obj = Music(self.args[0], jellyfindb, kodidb, self.args[1]).artist
|
obj = Music(self.args[0], jellyfindb, kodidb, self.args[1]).artist(item)
|
||||||
elif item['Type'] == 'AlbumArtist':
|
elif item['Type'] == 'AlbumArtist':
|
||||||
obj = Music(self.args[0], jellyfindb, kodidb, self.args[1]).albumartist
|
obj = Music(self.args[0], jellyfindb, kodidb, self.args[1]).albumartist(item)
|
||||||
elif item['Type'] == 'Audio':
|
elif item['Type'] == 'Audio':
|
||||||
obj = Music(self.args[0], jellyfindb, kodidb, self.args[1]).song
|
obj = Music(self.args[0], jellyfindb, kodidb, self.args[1]).song(item)
|
||||||
|
|
||||||
try:
|
|
||||||
obj(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