Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
47 lines (46 sloc) 2.29 KB
<?xml version="1.0" encoding="UTF-8"?>
{{ if itunes_author }}
<rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0">
{{else}}
<rss version="2.0">
{{ /if }}
<channel>
<title><![CDATA[{{@ title || 'RSSHub' }}]]></title>
<link>{{ link || 'https://github.com/DIYgod/RSSHub' }}</link>
<description><![CDATA[{{@ description || title }} - Made with love by RSSHub(https://github.com/DIYgod/RSSHub)]]></description>
<generator>RSSHub</generator>
<webMaster>i@diygod.me</webMaster>
{{ if itunes_author }}<itunes:author>{{ itunes_author}}</itunes:author>{{ /if }}
{{ if itunes_category }}<itunes:category text="{{ itunes_category }}"/>{{ /if }}
<language>{{ language || 'zh-cn' }}</language>
{{ if image }}
<image>
<url>{{ image }}</url>
<title><![CDATA[{{@ title || 'RSSHub' }}]]></title>
<link>{{ link }}</link>
</image>
{{ /if }}
<lastBuildDate>{{ lastBuildDate }}</lastBuildDate>
<ttl>{{ ttl }}</ttl>
{{ each item }}
<item>
<title><![CDATA[{{@ $value.title }}]]></title>
<description><![CDATA[{{@ $value.description || $value.title }}]]></description>
{{ if $value.pubDate }}<pubDate>{{ $value.pubDate }}</pubDate>{{ /if }}
<guid>{{ $value.guid || $value.link }}</guid>
<link>{{ $value.link }}</link>
{{ if $value.itunes_item_image }}<itunes:image href="{{ $value.itunes_item_image }}"/>{{ /if }}
{{ if $value.enclosure_url }}<enclosure url="{{ $value.enclosure_url }}" {{ if $value.enclosure_length }}length="{{ $value.enclosure_length }}"{{ /if }} {{ if $value.enclosure_type }}type="{{ $value.enclosure_type }}"{{ /if }} />{{ /if }}
{{ if $value.itunes_duration }}<itunes:duration>{{ $value.itunes_duration }}</itunes:duration> {{ /if }}
{{ if $value.author }}<author><![CDATA[{{ $value.author }}]]></author>{{ /if }}
{{ if typeof $value.category === 'string' }}
<category>{{ $value.category }}</category>
{{ else }}
{{ each $value.category $c }}
<category>{{ $c }}</category>
{{ /each }}
{{ /if }}
</item>
{{ /each }}
</channel>
</rss>
You can’t perform that action at this time.