mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 04:06:11 +00:00
Fix music artist syncing for Kodi 19
This commit is contained in:
parent
75590d3a1d
commit
0aa2e71320
2 changed files with 12 additions and 2 deletions
|
@ -88,7 +88,12 @@ class Music(Kodi):
|
||||||
self.cursor.execute(QU.update_artist_name, args)
|
self.cursor.execute(QU.update_artist_name, args)
|
||||||
|
|
||||||
def update(self, *args):
|
def update(self, *args):
|
||||||
self.cursor.execute(QU.update_artist, args)
|
if self.version_id < 74:
|
||||||
|
self.cursor.execute(QU.update_artist74, args)
|
||||||
|
else:
|
||||||
|
# No field for backdrops in Kodi 19, so we need to omit that here
|
||||||
|
args = args[:3] + args[4:]
|
||||||
|
self.cursor.execute(QU.update_artist82, args)
|
||||||
|
|
||||||
def link(self, *args):
|
def link(self, *args):
|
||||||
self.cursor.execute(QU.update_link, args)
|
self.cursor.execute(QU.update_link, args)
|
||||||
|
|
|
@ -154,11 +154,16 @@ SET strArtist = ?
|
||||||
WHERE idArtist = ?
|
WHERE idArtist = ?
|
||||||
"""
|
"""
|
||||||
update_artist_name_obj = ["{Name}", "{ArtistId}"]
|
update_artist_name_obj = ["{Name}", "{ArtistId}"]
|
||||||
update_artist = """
|
update_artist74 = """
|
||||||
UPDATE artist
|
UPDATE artist
|
||||||
SET strGenres = ?, strBiography = ?, strImage = ?, strFanart = ?, lastScraped = ?
|
SET strGenres = ?, strBiography = ?, strImage = ?, strFanart = ?, lastScraped = ?
|
||||||
WHERE idArtist = ?
|
WHERE idArtist = ?
|
||||||
"""
|
"""
|
||||||
|
update_artist82 = """
|
||||||
|
UPDATE artist
|
||||||
|
SET strGenres = ?, strBiography = ?, strImage = ?, lastScraped = ?
|
||||||
|
WHERE idArtist = ?
|
||||||
|
"""
|
||||||
update_link = """
|
update_link = """
|
||||||
INSERT OR REPLACE INTO album_artist(idArtist, idAlbum, strArtist)
|
INSERT OR REPLACE INTO album_artist(idArtist, idAlbum, strArtist)
|
||||||
VALUES (?, ?, ?)
|
VALUES (?, ?, ?)
|
||||||
|
|
Loading…
Reference in a new issue