From 33dfd0ee8248b72e5a932bf0f9be027b84c686db Mon Sep 17 00:00:00 2001 From: Matt Date: Mon, 15 Mar 2021 23:42:11 -0400 Subject: [PATCH] Fix capitalization of variable --- jellyfin_kodi/objects/kodi/queries_music.py | 4 ++-- jellyfin_kodi/objects/music.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/jellyfin_kodi/objects/kodi/queries_music.py b/jellyfin_kodi/objects/kodi/queries_music.py index 118d837c..88131dc3 100644 --- a/jellyfin_kodi/objects/kodi/queries_music.py +++ b/jellyfin_kodi/objects/kodi/queries_music.py @@ -54,7 +54,7 @@ FROM album WHERE strMusicBrainzAlbumID = ? """ 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 = """ SELECT idAlbum, strArtists FROM album @@ -102,7 +102,7 @@ INSERT INTO album(idAlbum, strAlbum, strMusicBrainzAlbumID, strReleaseType, VALUES (?, ?, ?, ?, 1) """ add_album82 = """ -INSERT INTO album(idAlbum, strAlbum, strMusicBrainzAlbumID, strReleaseType, bScrapedMBID, dateAdded) +INSERT INTO album(idAlbum, strAlbum, strMusicBrainzAlbumID, strReleaseType, bScrapedMBID, DateAdded) VALUES (?, ?, ?, ?, 1, ?) """ add_single = """ diff --git a/jellyfin_kodi/objects/music.py b/jellyfin_kodi/objects/music.py index 66ef8302..b5a35b18 100644 --- a/jellyfin_kodi/objects/music.py +++ b/jellyfin_kodi/objects/music.py @@ -153,7 +153,7 @@ class Music(KodiDb): obj['Artists'] = " / ".join(obj['Artists'] or []) obj['Artwork'] = API.get_all_artwork(self.objects.map(item, 'ArtworkMusic'), True) obj['Thumb'] = obj['Artwork']['Primary'] - obj['dateAdded'] = item.get('DateCreated') + obj['DateAdded'] = item.get('DateCreated') if obj['DateAdded']: obj['DateAdded'] = Local(obj['DateAdded']).split('.')[0].replace('T', " ")