mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 04:06:11 +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
|
||||||
|
|
||||||
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:
|
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:
|
except LibraryException as error:
|
||||||
if error.status == 'StopCalled':
|
if error.status == 'StopCalled':
|
||||||
break
|
break
|
||||||
|
|
Loading…
Reference in a new issue