From 5be2f69497a9627e379e130596ad8075e1e50d1d Mon Sep 17 00:00:00 2001 From: "Maxence G. de Montauzan" Date: Fri, 21 Apr 2017 15:54:19 +0200 Subject: [PATCH] Fix song bad type --- iTunesParser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iTunesParser.py b/iTunesParser.py index 8ebce06..ccaba26 100644 --- a/iTunesParser.py +++ b/iTunesParser.py @@ -292,7 +292,7 @@ class WriteElsJson: file = io.open(output_file, 'wb') for persistent_id, song in songs.items(): json_track_index = { - "index": {"_index": "itunessongs", "_type": "album", "_id": persistent_id} + "index": {"_index": "itunessongs", "_type": "song", "_id": persistent_id} } file.write(bytes(json.dumps(json_track_index, indent=None, cls=SetEncoder), 'UTF-8'))