From 71d0cccdaad97695e7785a016bd0b3b5acdef42a Mon Sep 17 00:00:00 2001 From: croneter Date: Sun, 20 Dec 2020 16:07:39 +0100 Subject: [PATCH] Fix lookup including year (iyear) --- resources/lib/kodi_db/music.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/lib/kodi_db/music.py b/resources/lib/kodi_db/music.py index e64cc68d..4d957c59 100644 --- a/resources/lib/kodi_db/music.py +++ b/resources/lib/kodi_db/music.py @@ -111,7 +111,7 @@ class KodiMusicDB(common.KodiDBBase): Removes the album with id album_id from the table discography """ # Need to get the album name as a string first! - self.cursor.execute('SELECT strAlbum, iYear FROM album WHERE idAlbum = ? LIMIT 1', + self.cursor.execute('SELECT strAlbum FROM album WHERE idAlbum = ? LIMIT 1', (album_id, )) try: name, year = self.cursor.fetchone()