Pretty-print json dump
This commit is contained in:
parent
735f77724e
commit
616b9c366c
|
@ -126,7 +126,7 @@ async def _video_worker():
|
|||
if is_late:
|
||||
text += ' (is late)'
|
||||
text += f': {video_json["title"]}'
|
||||
with BytesIO(json.dumps(video_json).encode()) as file:
|
||||
with BytesIO(json.dumps(video_json, indent=4).encode()) as file:
|
||||
file.name = video_json['id'] + '.json'
|
||||
file.seek(0)
|
||||
await client.send_file(config['config']['storage_chat_id'], file, caption=text, parse_mode=None)
|
||||
|
|
Loading…
Reference in New Issue