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', " ")