kopia lustrzana https://github.com/Podcastindex-org/podcast-namespace
Merge pull request #331 from saerdnaer/patch-1
use proper mime type for srt files #221pull/338/head
commit
91b3e5eee4
10
docs/1.0.md
10
docs/1.0.md
|
@ -31,19 +31,20 @@ Detailed file format information and example files are [here](../transcripts/tra
|
|||
### Attributes
|
||||
- **url (required):** URL of the podcast transcript.
|
||||
|
||||
- **type (required):** Mime type of the file such as `text/plain`, `text/html`, `application/srt`, `text/vtt`, `application/json`
|
||||
- **type (required):** Mime type of the file such as `text/plain`, `text/html`, `text/vtt`, `application/json`, `application/x-subrip`
|
||||
|
||||
- **language (optional):** The language of the linked transcript. If there is no language attribute given, the linked file is assumed to be the same language that is specified by the RSS `<language>` element.
|
||||
|
||||
- **rel (optional):** If the rel="captions" attribute is present, the linked file is considered to be a closed captions file, regardless of what the mime type is. In that scenario, time codes are assumed to be present in the file in some capacity.
|
||||
|
||||
|
||||
### Examples
|
||||
```xml
|
||||
<podcast:transcript url="https://example.com/episode1/transcript.html" type="text/html" />
|
||||
```
|
||||
|
||||
```xml
|
||||
<podcast:transcript url="https://example.com/episode1/transcript.srt" type="text/srt" rel="captions" />
|
||||
<podcast:transcript url="https://example.com/episode1/transcript.vtt" type="text/vtt" />
|
||||
```
|
||||
|
||||
```xml
|
||||
|
@ -51,11 +52,12 @@ Detailed file format information and example files are [here](../transcripts/tra
|
|||
```
|
||||
|
||||
```xml
|
||||
<podcast:transcript url="https://example.com/episode1/transcript.vtt" type="text/vtt" />
|
||||
<podcast:transcript url="https://example.com/episode1/transcript.srt" type="application/x-subrip" rel="captions" />
|
||||
```
|
||||
|
||||
|
||||
|
||||
|
||||
<br><br><br><br><!-- Tag block -->
|
||||
## Locked
|
||||
`<podcast:locked>`<br><br>
|
||||
|
@ -869,4 +871,4 @@ The node value is a free form string meant to explain to the user where this con
|
|||
|
||||
```xml
|
||||
<podcast:contentLink href="https://twitter.com/statuses/somepost">Chat on Twitter!</podcast:contentLink>
|
||||
```
|
||||
```
|
||||
|
|
Ładowanie…
Reference in New Issue