feat: auto-generate Podcasting 2.0 chapters from episode timestamps#2
Open
ChadFarrow wants to merge 1 commit intoderekross:mainfrom
Open
feat: auto-generate Podcasting 2.0 chapters from episode timestamps#2ChadFarrow wants to merge 1 commit intoderekross:mainfrom
ChadFarrow wants to merge 1 commit intoderekross:mainfrom
Conversation
Parse timestamp lines in episode content at build time and generate JSON chapters files for podcast apps. Episodes with an existing chaptersUrl are skipped. Also passes through transcript/chapters URLs in the client-side RSS generator. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Author
|
I used the Soapbox Sessions and Nostr Compass RSS feeds as reference for this but wont know if the chapters worked until this is run. It takes the timestamps and makes PC 2.0 chapters from it so listeners can skip around in the app. |
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
00:00 Intro,1:00:12 - Wrap Up) from episode content at build time and generates Podcasting 2.0 JSON chapter files indist/chapters/chaptersUrl(uploaded JSON) are skipped — auto-parsing is a fallback onlytranscriptUrlandchaptersUrland renders<podcast:transcript>/<podcast:chapters>tagstranscriptandchaptersas optional tags for Kind 30054 in NIP.mdSupported timestamp formats
Tested against real content from Soapbox Sessions and Nostr Compass:
MM:SS Title00:00 IntroMM:SS - Title00:00 - IntroH:MM:SS Title1:00:12 Wrap UpHH:MM:SS Title01:45:35 OutroFiles changed
src/lib/parseChapters.tssrc/lib/parseChapters.test.tsscripts/build-rss.tssrc/lib/rssGenerator.tsNIP.mdTest plan
npm test)🤖 Generated with Claude Code