You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
104 lines
3.3 KiB
104 lines
3.3 KiB
# This file tests extensions primarily designed for RSS 2
|
|
|
|
iTunes title:
|
|
input: >
|
|
<rss><channel xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd">
|
|
<item>
|
|
<itunes:title> Plain title</itunes:title>
|
|
</item>
|
|
</channel></rss>
|
|
output:
|
|
format: rss
|
|
entries:
|
|
- title: 'Plain title'
|
|
|
|
Explicitly encoded content:
|
|
input: >
|
|
<rss><channel xmlns:content="http://purl.org/rss/1.0/modules/content/">
|
|
<item>
|
|
<description>Loose content</description>
|
|
<content:encoded>HTML content</content:encoded>
|
|
</item>
|
|
</channel></rss>
|
|
output:
|
|
format: rss
|
|
entries:
|
|
- content: {html: 'HTML content'}
|
|
|
|
iTunes summary:
|
|
input: >
|
|
<rss><channel xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd">
|
|
<item>
|
|
<itunes:summary> Plain summary</itunes:summary>
|
|
</item>
|
|
</channel></rss>
|
|
output:
|
|
format: rss
|
|
entries:
|
|
- summary: 'Plain summary'
|
|
|
|
Google Play summary:
|
|
input: >
|
|
<rss><channel xmlns:play="http://www.google.com/schemas/play-podcasts/1.0">
|
|
<item>
|
|
<play:description> Plain summary</play:description>
|
|
</item>
|
|
</channel></rss>
|
|
output:
|
|
format: rss
|
|
entries:
|
|
- summary: 'Plain summary'
|
|
|
|
iTunes authors:
|
|
input: >
|
|
<rss><channel xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd">
|
|
<item>
|
|
<itunes:author>jane.doe@example.com (Jane Doe)</itunes:author>
|
|
<itunes:author>john.doe@example.com (John Doe)</itunes:author>
|
|
</item>
|
|
</channel></rss>
|
|
output:
|
|
format: rss
|
|
entries:
|
|
- people:
|
|
- name: 'Jane Doe'
|
|
mail: 'jane.doe@example.com'
|
|
role: author
|
|
- name: 'John Doe'
|
|
mail: 'john.doe@example.com'
|
|
role: author
|
|
|
|
Google Play authors:
|
|
input: >
|
|
<rss><channel xmlns:play="http://www.google.com/schemas/play-podcasts/1.0">
|
|
<item>
|
|
<play:author>jane.doe@example.com (Jane Doe)</play:author>
|
|
<play:author>john.doe@example.com (John Doe)</play:author>
|
|
</item>
|
|
</channel></rss>
|
|
output:
|
|
format: rss
|
|
entries:
|
|
- people:
|
|
- name: 'Jane Doe'
|
|
mail: 'jane.doe@example.com'
|
|
role: author
|
|
- name: 'John Doe'
|
|
mail: 'john.doe@example.com'
|
|
role: author
|
|
|
|
Mixed podcast authors: # Google Play is arbitrarily preferred
|
|
input: >
|
|
<rss><channel xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:play="http://www.google.com/schemas/play-podcasts/1.0">
|
|
<item>
|
|
<itunes:author>jane.doe@example.com (Jane Doe)</itunes:author>
|
|
<play:author>john.doe@example.com (John Doe)</play:author>
|
|
</item>
|
|
</channel></rss>
|
|
output:
|
|
format: rss
|
|
entries:
|
|
- people:
|
|
- name: 'John Doe'
|
|
mail: 'john.doe@example.com'
|
|
role: author
|
|
|