mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-24 17:56:11 +00:00
Fix music
This commit is contained in:
parent
106e6e849d
commit
055c12bfe5
2 changed files with 6 additions and 6 deletions
|
@ -192,7 +192,7 @@ class KodiMusic(KodiItems):
|
|||
query = ' '.join((
|
||||
|
||||
"UPDATE album",
|
||||
"SET strArtist = ?, iYear = ?, strGenres = ?, strReview = ?, strImage = ?,",
|
||||
"SET strArtists = ?, iYear = ?, strGenres = ?, strReview = ?, strImage = ?,",
|
||||
"iUserrating = ?, lastScraped = ?, strReleaseType = ?",
|
||||
"WHERE idAlbum = ?"
|
||||
))
|
||||
|
|
|
@ -234,7 +234,7 @@ class Music(Items):
|
|||
emby_db.addReference(itemid, artistid, artisttype, "artist", checksum=checksum)
|
||||
|
||||
# Process the artist
|
||||
if self.kodi_version > 18:
|
||||
if self.kodi_version < 18:
|
||||
self.kodi_db.update_artist(genres, bio, thumb, fanart, lastScraped, dateadded, artistid)
|
||||
else:
|
||||
self.kodi_db.update_artist_18(genres, bio, thumb, fanart, lastScraped, artistid)
|
||||
|
@ -303,7 +303,7 @@ class Music(Items):
|
|||
emby_db.addReference(itemid, albumid, "MusicAlbum", "album", checksum=checksum)
|
||||
|
||||
# Process the album info
|
||||
if self.kodi_version > 18:
|
||||
if self.kodi_version < 18:
|
||||
self.kodi_db.update_album(artistname, year, genre, bio, thumb, rating, lastScraped,
|
||||
"album", albumid)
|
||||
else:
|
||||
|
@ -344,7 +344,7 @@ class Music(Items):
|
|||
self.kodi_db.add_discography(artistid, name, year)
|
||||
|
||||
# Add genres
|
||||
if self.kodi_version > 18:
|
||||
if self.kodi_version < 18:
|
||||
self.kodi_db.add_genres(albumid, genres, "album")
|
||||
# Update artwork
|
||||
artwork.add_artwork(artworks, albumid, "album", kodicursor)
|
||||
|
@ -503,8 +503,8 @@ class Music(Items):
|
|||
# Link song to album
|
||||
if self.kodi_version < 18:
|
||||
self.kodi_db.link_song_album(songid, albumid, track, title, duration)
|
||||
|
||||
# Create default role
|
||||
if self.kodi_version > 16:
|
||||
self.kodi_db.add_role()
|
||||
|
||||
# Link song to artists
|
||||
|
|
Loading…
Reference in a new issue