mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-26 02:36:10 +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:
|
try:
|
||||||
obj['AlbumId'] = self.emby_db.get_item_by_id(*values(obj, QUEM.get_item_song_obj))[0]
|
obj['AlbumId'] = self.emby_db.get_item_by_id(*values(obj, QUEM.get_item_song_obj))[0]
|
||||||
except TypeError:
|
except TypeError:
|
||||||
self.album(self.server['api'].get_item(obj['SongAlbumId']))
|
|
||||||
|
|
||||||
try:
|
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]
|
obj['AlbumId'] = self.emby_db.get_item_by_id(*values(obj, QUEM.get_item_song_obj))[0]
|
||||||
except TypeError:
|
except TypeError:
|
||||||
self.single(obj)
|
self.single(obj)
|
||||||
|
|
Loading…
Reference in a new issue