You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Scope per-lecture image dir + section cache by stable slug, not num
Sequential caption-index `num` is reused across runs, so when a new
video is added and num assignments shift, the second lecture's frames
silently overwrite the first's inside images/L{num}/ while the first
note's captions still reference that path. The 4_10_2026 zh.md
captioned Network Security title slides but pointed at images from
the 4_17_2026 video after discovery reordered.
Fix: new LectureData.slug / dir_key derived from the frame dir name
(or slide stem) so every lecture owns a unique images/L{num}_{slug}/
and sections/L{num}_{slug}_S{ci}.md path. The img-ref regex accepts
the old L{num} format too, so the filter pass still parses legacy
notes; regenerate affected notes with --force to get correct images.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: note_generation.py
+51-29Lines changed: 51 additions & 29 deletions
Original file line number
Diff line number
Diff line change
@@ -105,9 +105,9 @@
105
105
- Pure text slides (bullet points, definitions, titles) do not need images — the notes express text better than a screenshot.
106
106
- **Be INCLUSIVE with images**: if a frame/slide shows a diagram, chart, table, code, or any non-trivial visual content, include it. Aim to include most of the content-rich images available, not just a few highlights. It's better to have more images with brief connecting text than to skip images.
107
107
- **Each image MUST be placed inline, immediately after the paragraph that directly discusses the concept shown in that image.** If a frame shows content that the transcript doesn't fully cover, briefly describe the frame's content (using the description provided in the image hints) and then insert the image.
108
-
- Format for slide images: ` *(one-sentence description)*`
109
-
- Format for screen-capture frames: ` *(one-sentence description)*`
110
-
(LXX is provided by the caller — do not modify it; the caption must be in parentheses wrapped in asterisks exactly as shown).
108
+
- Format for slide images: ` *(one-sentence description)*`
109
+
- Format for screen-capture frames: ` *(one-sentence description)*`
110
+
(The subdirectory under `images/` is provided in the "Available images" list — copy it verbatim, including any slug suffix, and do not shorten or rewrite it. The caption must be in parentheses wrapped in asterisks exactly as shown.)
111
111
9. Never fabricate technical details not present in the source material.
0 commit comments