kopia lustrzana https://github.com/Podcastindex-org/podcast-namespace
chapters tag/format work - #47
rodzic
a08d5ba0e7
commit
6c7310fb21
|
@ -78,13 +78,13 @@ Please read it before contributing if you aren't familiar with it.
|
|||
|
||||
<br>
|
||||
|
||||
- **\<podcast:chapter url="[url to chapter data]" type="[mimi type]" />**
|
||||
- **\<podcast:chapters url="[url to chapter data file]" type="[mime type]" />**
|
||||
|
||||
Item
|
||||
|
||||
(optional)
|
||||
|
||||
Links to an external file **(sample needed)** containing chapter data for the episode. The mime type of the file should be given - JSON prefered, `application/json`.
|
||||
Links to an external file (see example file) containing chapter data for the episode. The mime type of the file should be given - JSON prefered, `application/json`.
|
||||
|
||||
<br>
|
||||
|
||||
|
|
|
@ -3,21 +3,40 @@
|
|||
"chapters":
|
||||
[
|
||||
{
|
||||
"marker": 0,
|
||||
"title": "Intro",
|
||||
"img": "http://example.com/podcast/episode/chapter_art1.jpg"
|
||||
"startTime": 0,
|
||||
"title": "Intro"
|
||||
},
|
||||
{
|
||||
"marker": 94,
|
||||
"title": "Donation Segment",
|
||||
"img": "http://example.com/podcast/episode/chapter_art2.jpg",
|
||||
"url": "http://example.com/link/to/funding_platform"
|
||||
"startTime": 168,
|
||||
"title": "Hearing Aids"
|
||||
},
|
||||
{
|
||||
"marker": 203,
|
||||
"title": "News Discussion",
|
||||
"img": "http://example.com/podcast/episode/chapter_art3.jpg",
|
||||
"url": "http://example.com/link/to/article_that_was_discussed"
|
||||
"startTime": 260,
|
||||
"title": "Progress Report"
|
||||
},
|
||||
{
|
||||
"startTime": 410,
|
||||
"title": "Namespace",
|
||||
"img": "https://noagendaassets.com/enc/1602976942.638_pc20feedss.jpg",
|
||||
"url": "https://github.com/Podcastindex-org/podcast-namespace"
|
||||
},
|
||||
{
|
||||
"startTime": 3990,
|
||||
"title": "Just Break Up",
|
||||
"img": "https://noagendaassets.com/enc/1602977264.567_80ad58e16124df27.png",
|
||||
"url": "https://twitter.com/justbreakuppod"
|
||||
},
|
||||
{
|
||||
"startTime": 5510,
|
||||
"title": "The Big Players"
|
||||
},
|
||||
{
|
||||
"startTime": 5854,
|
||||
"title": "Spread the Word"
|
||||
},
|
||||
{
|
||||
"startTime": 6089,
|
||||
"title": "Outro"
|
||||
}
|
||||
]
|
||||
}
|
|
@ -4,12 +4,16 @@ The "chapters" property is an array of "chapter" objects taking this form:
|
|||
|
||||
```
|
||||
{
|
||||
"marker": 94,
|
||||
"startTime": 94,
|
||||
"title": "Donation Segment",
|
||||
"img": "http://example.com/podcast/episode/chapter_art2.jpg",
|
||||
"url": "http://example.com/link/to/funding_platform"
|
||||
}
|
||||
```
|
||||
|
||||
Where "marker" (int - required) is the time in seconds, "title" (string - optional) is the chapter title, "img" (string - optional) is a link to an image to use as chapter art and "url" (string - optional) is a link to a
|
||||
supporting document like would be in shownotes.
|
||||
Attributes:
|
||||
|
||||
- `startTime` (required - float) The time, expressed in seconds with float precision for fractions of a second.
|
||||
- `title` (required - string) The title of this chapter.
|
||||
- `img` (optional - string) The url of an image to use as chapter art.
|
||||
- `url` (optional - string) The url of a web page or supporting document that's related to the topic of this chapter.
|
||||
|
|
Ładowanie…
Reference in New Issue