Happy Hour: Kissing the Hurt
- Date:
- 2021-11-08
- Speakers:
- Nikki Mirghafori [Talks] [@AudioDharma]
- Location:
- Insight Meditation Center [Talks] [@YouTube]
- Generation:
- 2026-07-30 (gemini-3-pro-preview) [Raw Markdown] [YouTube Video]
- Keywords:
This is an AI-generated transcript from auto-generated subtitles for the video above. It likely contains inaccuracies, especially with speaker attribution if there are multiple speakers.
if not force_redownload: if json_path.exists() and json_path.stat().st_size > 0: logging.info(f"Found cached raw transcript: {json_path}") return None if srt_path.exists() and srt_path.stat().st_size > 0: logger.info(f"Found cached SRT transcript: {srt_path}") return None
Additionally, update `_load_cached_transcripts` to clean up empty cache files so they don't persist:
```python
for path in self._raw_transcripts_dir.iterdir():
if not path.is_file():
logger.warning(f"Found something not a file: {path}")
continue
if path.stat().st_size == 0:
logger.warning(f"Found empty cached file, deleting: {path}")
path.unlink()
continue
video_id = path.stem
2. Update talk_processor/src/prompt.py
While opening the transcript, it is also highly recommended to explicitly specify the encoding to prevent potential cross-platform decoding issues:
with open(transcription, "r", encoding="utf-8") as f:
prompt = prompt.replace("", f.read())
(Note: During my investigation, I also noticed a logical bug in create_audiodharma_headers inside prompt.py where one_talk = len(talks) == 0 is used instead of == 1, and a failing test in tests/test_prompt.py due to a Pydantic ValidationError on the computed url field.)
Since your message was an inquiry and didn't contain an explicit directive to modify files, I have not made these changes yet. Let me know if you would like me to apply these fixes for you!