From 4fdadb8b27e96b43b15f6818f405e9db5a93e995 Mon Sep 17 00:00:00 2001 From: angelblue05 Date: Thu, 13 Sep 2018 02:35:45 -0500 Subject: [PATCH] Revert "Small fix for music" This reverts commit 30f0f9bc4f68a0321be8a564a825f2e5d7dbed8d. --- resources/lib/objects/kodi/music.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/resources/lib/objects/kodi/music.py b/resources/lib/objects/kodi/music.py index b65f22fa..98bf56e2 100644 --- a/resources/lib/objects/kodi/music.py +++ b/resources/lib/objects/kodi/music.py @@ -126,7 +126,6 @@ class Music(Kodi): try: if musicbrainz is not None: self.cursor.execute(QU.get_album, (musicbrainz,)) - album = None else: self.cursor.execute(QU.get_album_by_name, (name,)) album = self.cursor.fetchone() @@ -134,7 +133,7 @@ class Music(Kodi): if album[1] and album[1] not in artists.split(' / '): raise TypeError - album_id = (album or self.cursor.fetchone())[0] + album_id = self.cursor.fetchone()[0] except TypeError: album_id = self.add_album(*(album_id, name, musicbrainz,) + args)