mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-26 02:36:10 +00:00
Small fix for music
This commit is contained in:
parent
c0146b7f00
commit
30f0f9bc4f
1 changed files with 2 additions and 1 deletions
|
@ -126,6 +126,7 @@ class Music(Kodi):
|
||||||
try:
|
try:
|
||||||
if musicbrainz is not None:
|
if musicbrainz is not None:
|
||||||
self.cursor.execute(QU.get_album, (musicbrainz,))
|
self.cursor.execute(QU.get_album, (musicbrainz,))
|
||||||
|
album = None
|
||||||
else:
|
else:
|
||||||
self.cursor.execute(QU.get_album_by_name, (name,))
|
self.cursor.execute(QU.get_album_by_name, (name,))
|
||||||
album = self.cursor.fetchone()
|
album = self.cursor.fetchone()
|
||||||
|
@ -133,7 +134,7 @@ class Music(Kodi):
|
||||||
if album[1] and album[1] not in artists.split(' / '):
|
if album[1] and album[1] not in artists.split(' / '):
|
||||||
raise TypeError
|
raise TypeError
|
||||||
|
|
||||||
album_id = self.cursor.fetchone()[0]
|
album_id = (album or self.cursor.fetchone())[0]
|
||||||
except TypeError:
|
except TypeError:
|
||||||
album_id = self.add_album(*(album_id, name, musicbrainz,) + args)
|
album_id = self.add_album(*(album_id, name, musicbrainz,) + args)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue