Add URL-based transcript range slicing for insert and side-panel flows#89
Draft
Copilot wants to merge 4 commits into
Draft
Add URL-based transcript range slicing for insert and side-panel flows#89Copilot wants to merge 4 commits into
Copilot wants to merge 4 commits into
Conversation
Agent-Logs-Url: https://github.com/lstrzepek/obsidian-yt-transcript/sessions/1f86f41e-0423-407f-93fe-e03e2eef4888 Co-authored-by: lstrzepek <185352+lstrzepek@users.noreply.github.com>
Agent-Logs-Url: https://github.com/lstrzepek/obsidian-yt-transcript/sessions/1f86f41e-0423-407f-93fe-e03e2eef4888 Co-authored-by: lstrzepek <185352+lstrzepek@users.noreply.github.com>
Agent-Logs-Url: https://github.com/lstrzepek/obsidian-yt-transcript/sessions/1f86f41e-0423-407f-93fe-e03e2eef4888 Co-authored-by: lstrzepek <185352+lstrzepek@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add feature to fetch transcript for specific time range
Add URL-based transcript range slicing for insert and side-panel flows
May 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Users currently have to fetch full transcripts and manually trim content, which is cumbersome for long videos. This change adds first-class support for requesting only a specific segment (e.g.
2:48to7:59) directly from the YouTube URL.Time-range parsing from YouTube URLs
extractYouTubeTimeRange(url)insrc/youtube/url.ts.start,end,t, and#t=inputs with common formats (mm:ss,hh:mm:ss,2m48s, raw seconds).end <= start).Transcript line range filtering
filterTranscriptLinesByRange(...)insrc/transcript/range.ts.Applied to both transcript output paths
src/transcript/format.ts: insert command output is now range-aware.src/obsidian/views/transcript-view.ts: side-panel rendering is now range-aware.buildTimestampUrl(...)for consistent URL handling.User-facing docs update