Fix capitalization of variable

This commit is contained in:
Matt 2021-03-15 23:42:11 -04:00
parent 94b3a3e0a0
commit 33dfd0ee82
2 changed files with 3 additions and 3 deletions

View File

@ -54,7 +54,7 @@ FROM album
WHERE strMusicBrainzAlbumID = ? WHERE strMusicBrainzAlbumID = ?
""" """
get_album_obj = ["{AlbumId}", "{Title}", "{UniqueId}", "{Artists}", "album"] get_album_obj = ["{AlbumId}", "{Title}", "{UniqueId}", "{Artists}", "album"]
get_album_obj82 = ["{AlbumId}", "{Title}", "{UniqueId}", "{Artists}", "album", "{dateAdded}"] get_album_obj82 = ["{AlbumId}", "{Title}", "{UniqueId}", "{Artists}", "album", "{DateAdded}"]
get_album_by_name = """ get_album_by_name = """
SELECT idAlbum, strArtists SELECT idAlbum, strArtists
FROM album FROM album
@ -102,7 +102,7 @@ INSERT INTO album(idAlbum, strAlbum, strMusicBrainzAlbumID, strReleaseType,
VALUES (?, ?, ?, ?, 1) VALUES (?, ?, ?, ?, 1)
""" """
add_album82 = """ add_album82 = """
INSERT INTO album(idAlbum, strAlbum, strMusicBrainzAlbumID, strReleaseType, bScrapedMBID, dateAdded) INSERT INTO album(idAlbum, strAlbum, strMusicBrainzAlbumID, strReleaseType, bScrapedMBID, DateAdded)
VALUES (?, ?, ?, ?, 1, ?) VALUES (?, ?, ?, ?, 1, ?)
""" """
add_single = """ add_single = """

View File

@ -153,7 +153,7 @@ class Music(KodiDb):
obj['Artists'] = " / ".join(obj['Artists'] or []) obj['Artists'] = " / ".join(obj['Artists'] or [])
obj['Artwork'] = API.get_all_artwork(self.objects.map(item, 'ArtworkMusic'), True) obj['Artwork'] = API.get_all_artwork(self.objects.map(item, 'ArtworkMusic'), True)
obj['Thumb'] = obj['Artwork']['Primary'] obj['Thumb'] = obj['Artwork']['Primary']
obj['dateAdded'] = item.get('DateCreated') obj['DateAdded'] = item.get('DateCreated')
if obj['DateAdded']: if obj['DateAdded']:
obj['DateAdded'] = Local(obj['DateAdded']).split('.')[0].replace('T', " ") obj['DateAdded'] = Local(obj['DateAdded']).split('.')[0].replace('T', " ")