Fix lookup including year (iyear)

This commit is contained in:
croneter 2020-12-20 16:07:39 +01:00
parent b5093eb6be
commit 71d0cccdaa

View file

@ -111,7 +111,7 @@ class KodiMusicDB(common.KodiDBBase):
Removes the album with id album_id from the table discography Removes the album with id album_id from the table discography
""" """
# Need to get the album name as a string first! # 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, )) (album_id, ))
try: try:
name, year = self.cursor.fetchone() name, year = self.cursor.fetchone()