mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 12:16:12 +00:00
Fix empty albumid for songs
This commit is contained in:
parent
ebb4139d48
commit
3da0ab5b24
1 changed files with 4 additions and 1 deletions
|
@ -314,9 +314,12 @@ class Music(KodiDb):
|
|||
try:
|
||||
obj['AlbumId'] = self.emby_db.get_item_by_id(*values(obj, QUEM.get_item_song_obj))[0]
|
||||
except TypeError:
|
||||
self.album(self.server['api'].get_item(obj['SongAlbumId']))
|
||||
|
||||
try:
|
||||
if obj['SongAlbumId'] is None:
|
||||
raise TypeError("No album id found associated?")
|
||||
|
||||
self.album(self.server['api'].get_item(obj['SongAlbumId']))
|
||||
obj['AlbumId'] = self.emby_db.get_item_by_id(*values(obj, QUEM.get_item_song_obj))[0]
|
||||
except TypeError:
|
||||
self.single(obj)
|
||||
|
|
Loading…
Reference in a new issue