feat(player): show YouTube chapters next to lyrics - #72
Open
mihaimetal wants to merge 2 commits into
Open
mihaimetal wants to merge 2 commits into
mihaimetal wants to merge 2 commits into
Conversation
This was referenced Aug 16, 2026
Extract PlayerMediaPanel so the side player and the bottom-bar popover render the same lyrics surface, including the source picker header on the popover.
Fetch chapters from the anonymous WEB /player (official markers, then description timestamps). When a track has them, the lyrics panel gains Lyrics / Chapters tabs and defaults to Chapters. Clicking a row seeks. Persist the tiny lists so OSTs reopen instantly.
mihaimetal
force-pushed
the
feature/chapters
branch
from
August 26, 2026 12:19
1887337 to
3e4b6c4
Compare
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.
Summary
PlayerMediaPanelso the side player and the bottom-bar lyrics popover render the same surface (this used to be feat(player): share one lyrics panel across player layouts #71)./player(officialchapterRenderer/markersMapfirst, then the description timestamp list YouTube itself promotes to chapters).formatTimenow supports hour-long timestamps (1:31:29) via a sharedformatTimestamp.Why
OST dumps, long mixes, and uploaded concerts already have clickable chapter lists on YouTube. YT Music's WEB_REMIX
/nextand/playerdo not carry them (verified against a 152-chapter OST), so this uses the regular YouTube WEB client, unsigned — same rationale as YTM lyrics.The shared panel is in the same PR because chapters hang Lyrics / Chapters tabs on it. Splitting that extract out as #71 made the stack noisier than the change is worth.
Scope
Frontend-only, rebased cleanly on
v0.4.4/ currentorigin/main. One branch:feature/chapters(2 commits).Test plan
pnpm test(includeschapters.test.ts+format.test.ts)tsc --noEmit0:00track list) — Chapters tab appears and is selectedNotes
Supersedes #71. Independent of the macOS / WEB_REMIX / speed / Share (#73) PRs. No cookies are sent to
www.youtube.com.