From 54370f4487120b724640058fb80d499d1071d066 Mon Sep 17 00:00:00 2001 From: Guilherme Pires Date: Tue, 6 Feb 2024 17:12:32 -0700 Subject: [PATCH] include necessary headers --- process_debates.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/process_debates.py b/process_debates.py index b6d7cea..700f09e 100644 --- a/process_debates.py +++ b/process_debates.py @@ -147,9 +147,7 @@ def process_debate(*, title, url, output_root): "title": title, "original_url": url, "m3u8_url": m3u8_url, - "audio_path": str(output_root / f"audio/{slug}.mp3"), - "transcription_txt": str(output_root / f"transcriptions/{slug}.txt"), - "transcription_srt": str(output_root / f"transcriptions/{slug}.srt"), + "headers": dict(zip([tup.split(": ") for tup in headers.split("\r\n")])) if headers is not None else {}, } with open(output_root / f"{slug}.json", "w") as f: