yb.podcast.chapters¶
Podcast chapter markers: Podlove Simple Chapters (PSC) + MP3 ID3 chapters.
Two standards cover most podcast players:
PSC — an XML sidecar (
<psc:chapters>) referenced from the RSS feed.ID3 chapters —
CHAP/CTOCframes embedded directly in the MP3, so chapters travel with the file (Apple Podcasts, Overcast, etc.).
Both are derived from the same platform-neutral mixing.chapters.Chapter list.
Functions
|
Render chapters as a Podlove Simple Chapters (PSC) XML document. |
|
Embed ID3v2 chapter frames ( |
|
Write a PSC XML sidecar to |
- yb.podcast.chapters.psc_xml(chapters)[source]¶
Render chapters as a Podlove Simple Chapters (PSC) XML document.
- Return type:
- yb.podcast.chapters.write_id3_chapters(mp3_path, chapters, *, duration=None, toc_id='toc')[source]¶
Embed ID3v2 chapter frames (
CHAP+CTOC) into an MP3 file.- Parameters:
- Return type:
- Returns:
The path written.
- Raises:
ImportError –
mutagenis not installed (pip install 'yb[podcast]').