Skip to content

Commit

Permalink
include necessary headers
Browse files Browse the repository at this point in the history
  • Loading branch information
colobas committed Feb 7, 2024
1 parent 2e93465 commit 54370f4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions process_debates.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 54370f4

Please sign in to comment.