Fix song bad type
This commit is contained in:
@@ -292,7 +292,7 @@ class WriteElsJson:
|
|||||||
file = io.open(output_file, 'wb')
|
file = io.open(output_file, 'wb')
|
||||||
for persistent_id, song in songs.items():
|
for persistent_id, song in songs.items():
|
||||||
json_track_index = {
|
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'))
|
file.write(bytes(json.dumps(json_track_index, indent=None, cls=SetEncoder), 'UTF-8'))
|
||||||
|
|||||||
Reference in New Issue
Block a user