Fix music

This commit is contained in:
angelblue05 2018-03-10 04:28:02 -06:00
parent 106e6e849d
commit 055c12bfe5
2 changed files with 6 additions and 6 deletions

View file

@ -192,7 +192,7 @@ class KodiMusic(KodiItems):
query = ' '.join(( query = ' '.join((
"UPDATE album", "UPDATE album",
"SET strArtist = ?, iYear = ?, strGenres = ?, strReview = ?, strImage = ?,", "SET strArtists = ?, iYear = ?, strGenres = ?, strReview = ?, strImage = ?,",
"iUserrating = ?, lastScraped = ?, strReleaseType = ?", "iUserrating = ?, lastScraped = ?, strReleaseType = ?",
"WHERE idAlbum = ?" "WHERE idAlbum = ?"
)) ))

View file

@ -234,7 +234,7 @@ class Music(Items):
emby_db.addReference(itemid, artistid, artisttype, "artist", checksum=checksum) emby_db.addReference(itemid, artistid, artisttype, "artist", checksum=checksum)
# Process the artist # 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) self.kodi_db.update_artist(genres, bio, thumb, fanart, lastScraped, dateadded, artistid)
else: else:
self.kodi_db.update_artist_18(genres, bio, thumb, fanart, lastScraped, artistid) 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) emby_db.addReference(itemid, albumid, "MusicAlbum", "album", checksum=checksum)
# Process the album info # 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, self.kodi_db.update_album(artistname, year, genre, bio, thumb, rating, lastScraped,
"album", albumid) "album", albumid)
else: else:
@ -344,7 +344,7 @@ class Music(Items):
self.kodi_db.add_discography(artistid, name, year) self.kodi_db.add_discography(artistid, name, year)
# Add genres # Add genres
if self.kodi_version > 18: if self.kodi_version < 18:
self.kodi_db.add_genres(albumid, genres, "album") self.kodi_db.add_genres(albumid, genres, "album")
# Update artwork # Update artwork
artwork.add_artwork(artworks, albumid, "album", kodicursor) artwork.add_artwork(artworks, albumid, "album", kodicursor)
@ -503,8 +503,8 @@ class Music(Items):
# Link song to album # Link song to album
if self.kodi_version < 18: if self.kodi_version < 18:
self.kodi_db.link_song_album(songid, albumid, track, title, duration) self.kodi_db.link_song_album(songid, albumid, track, title, duration)
# Create default role # Create default role
if self.kodi_version > 16:
self.kodi_db.add_role() self.kodi_db.add_role()
# Link song to artists # Link song to artists