Merge pull request #190 from mcarlton00/obj-error

Obj error
This commit is contained in:
mcarlton00 2020-02-15 11:21:57 -05:00 committed by GitHub
commit 0b3319a01a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -679,6 +679,14 @@ class UserDataWorker(threading.Thread):
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)