PodloveNamespace
\Benecaster\Feed\Namespaces\PodloveNamespace
The feed handler for Podlove Simple Chapters (psc:), prefix psc, URI http://podlove.org/simple-chapters/. The plugin registers it at boot. It emits nothing at channel level. In each item it emits one <psc:chapters version="1.2"> block holding a <psc:chapter> element per chapter, or nothing when the episode has no chapters. It targets the Podlove web player and apps that read chapters inline rather than from an external JSON file. For a JSON chapters file (the <podcast:chapters> tag), set the chapters key from a callback on benecaster_feed_podcast_episode_tags instead.
Chapter data comes from the benecaster_psc_chapters filter, which starts as an empty array. The plugin adds the chapters a podcaster wrote in the episode editor at the default priority; an add-on can add more. Each chapter is an array with start (a timecode such as 00:01:23.456) and title, both required, and optional href and image URLs. Entries with an empty start or no title key are dropped.
Methods
| Method | Visibility | Since | Description |
|---|---|---|---|
get_xmlns(): array |
Public | — | Returns [ 'psc' => 'http://podlove.org/simple-chapters/' ]. |
channel_tags( int $show_id ): array |
Public | — | Always returns an empty array. |
episode_tags( int $episode_id, int $show_id ): array |
Public | — | Applies benecaster_psc_chapters (arguments: an empty array and the episode ID), removes entries without a start or a title, and returns a one-element array holding the ` block, or an empty array when no chapter remains. Titles and attributes are escaped. The href and image` attributes appear only on chapters that have them. |
Hooks Fired
Notes
Chapters are emitted in the order the filter returns them and are not sorted, so a callback that adds chapters should insert them in time order. The class implements only FeedNamespaceInterface, so it receives no tier and every tier's feed carries the same chapters.