mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 02:06:09 +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:
|
||||
break
|
||||
|
||||
if item['Type'] == 'Movie':
|
||||
obj = Movies(self.args[0], jellyfindb, kodidb, self.args[1]).userdata(item)
|
||||
elif item['Type'] in ['Series', 'Season', 'Episode']:
|
||||
obj = TVShows(self.args[0], jellyfindb, kodidb, self.args[1]).userdata(item)
|
||||
elif item['Type'] == 'MusicAlbum':
|
||||
obj = Music(self.args[0], jellyfindb, kodidb, self.args[1]).album
|
||||
elif item['Type'] == 'MusicArtist':
|
||||
obj = Music(self.args[0], jellyfindb, kodidb, self.args[1]).artist
|
||||
elif item['Type'] == 'AlbumArtist':
|
||||
obj = Music(self.args[0], jellyfindb, kodidb, self.args[1]).albumartist
|
||||
elif item['Type'] == 'Audio':
|
||||
obj = Music(self.args[0], jellyfindb, kodidb, self.args[1]).song
|
||||
|
||||
try:
|
||||
obj(item)
|
||||
if item['Type'] == 'Movie':
|
||||
obj = Movies(self.args[0], jellyfindb, kodidb, self.args[1]).userdata(item)
|
||||
elif item['Type'] in ['Series', 'Season', 'Episode']:
|
||||
obj = TVShows(self.args[0], jellyfindb, kodidb, self.args[1]).userdata(item)
|
||||
elif item['Type'] == 'MusicAlbum':
|
||||
obj = Music(self.args[0], jellyfindb, kodidb, self.args[1]).album(item)
|
||||
elif item['Type'] == 'MusicArtist':
|
||||
obj = Music(self.args[0], jellyfindb, kodidb, self.args[1]).artist(item)
|
||||
elif item['Type'] == 'AlbumArtist':
|
||||
obj = Music(self.args[0], jellyfindb, kodidb, self.args[1]).albumartist(item)
|
||||
elif item['Type'] == 'Audio':
|
||||
obj = Music(self.args[0], jellyfindb, kodidb, self.args[1]).song(item)
|
||||
except LibraryException as error:
|
||||
if error.status == 'StopCalled':
|
||||
break
|
||||
|
|
Loading…
Reference in a new issue