Fix song bad type

This commit is contained in:
2017-04-21 15:54:19 +02:00
parent 39400ab3f2
commit 5be2f69497

View File

@@ -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'))