mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-09-24 23:12:34 +08:00
feat: Support itunes_category and itunes_explicit (#4483)
This commit is contained in:
@@ -66,6 +66,8 @@ module.exports = async (ctx) => {
|
||||
enclosure_url: enclosure_url,
|
||||
enclosure_length: enclosure_length,
|
||||
enclosure_type: 'audio/x-m4a',
|
||||
itunes_category: album_category,
|
||||
itunes_explicit: 'clean', // 内容是否为限制级
|
||||
};
|
||||
return Promise.resolve(resultItem);
|
||||
})
|
||||
|
||||
@@ -35,6 +35,8 @@
|
||||
{{ 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 itunes_author && $value.itunes_duration }}<itunes:duration>{{ $value.itunes_duration }}</itunes:duration> {{ /if }}
|
||||
{{ if itunes_author && $value.itunes_category }}<itunes:category>{{ $value.itunes_category }}</itunes:category> {{ /if }}
|
||||
{{ if itunes_author && $value.itunes_explicit }}<itunes:explicit>{{ $value.itunes_explicit }}</itunes:explicit> {{ /if }}
|
||||
{{ if $value.author }}<author><![CDATA[{{ $value.author }}]]></author>{{ /if }}
|
||||
{{ if typeof $value.category === 'string' }}
|
||||
<category>{{ $value.category }}</category>
|
||||
|
||||
Reference in New Issue
Block a user