mirror of
https://github.com/jgonyea/grav-plugin-podcast.git
synced 2025-12-05 16:00:02 +01:00
v2.1.6 Various fixes to RSS feed fields.
This commit is contained in:
12
CHANGELOG.md
12
CHANGELOG.md
@@ -1,3 +1,15 @@
|
|||||||
|
# v2.1.6
|
||||||
|
## 09/20/2020
|
||||||
|
|
||||||
|
1. [](#new)
|
||||||
|
* Added podcast episode number to feed.
|
||||||
|
|
||||||
|
2. [](#improved)
|
||||||
|
* Updated News category options
|
||||||
|
|
||||||
|
3. [](#bugfix)
|
||||||
|
* Updated field name to disable page media upload field on channels, series, and episodes.
|
||||||
|
|
||||||
# v2.1.5
|
# v2.1.5
|
||||||
## 01/28/2020
|
## 01/28/2020
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
name: Podcast
|
name: Podcast
|
||||||
version: 2.1.5
|
version: 2.1.6
|
||||||
description: Creates Podcast page types and related podcast RSS feeds
|
description: Creates Podcast page types and related podcast RSS feeds
|
||||||
icon: microphone
|
icon: microphone
|
||||||
author:
|
author:
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ form:
|
|||||||
ordering@: 0
|
ordering@: 0
|
||||||
title: Podcast Page Content
|
title: Podcast Page Content
|
||||||
fields:
|
fields:
|
||||||
uploads:
|
header.media_order:
|
||||||
unset@: true
|
unset@: true
|
||||||
header.title:
|
header.title:
|
||||||
type: text
|
type: text
|
||||||
|
|||||||
@@ -11,19 +11,23 @@ form:
|
|||||||
fields:
|
fields:
|
||||||
content:
|
content:
|
||||||
type: tab
|
type: tab
|
||||||
ordering@: 0
|
|
||||||
title: Podcast
|
title: Podcast
|
||||||
fields:
|
fields:
|
||||||
uploads:
|
|
||||||
unset@: true
|
|
||||||
header.title:
|
header.title:
|
||||||
ordering@: 0
|
ordering@: 1
|
||||||
type: text
|
type: text
|
||||||
label: Episode Title
|
label: Episode Title
|
||||||
header.subtitle:
|
header.subtitle:
|
||||||
ordering@: 1
|
ordering@: 2
|
||||||
type: text
|
type: text
|
||||||
label: Episode subtitle
|
label: Episode subtitle
|
||||||
|
header.podcast.episode_number:
|
||||||
|
ordering@: 3
|
||||||
|
type: text
|
||||||
|
label: Episode number
|
||||||
|
size: x-small
|
||||||
|
header.media_order:
|
||||||
|
unset@: true
|
||||||
podcastAudio:
|
podcastAudio:
|
||||||
type: tab
|
type: tab
|
||||||
title: Podcast Audio
|
title: Podcast Audio
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ form:
|
|||||||
ordering@: 0
|
ordering@: 0
|
||||||
title: Podcast Series Content
|
title: Podcast Series Content
|
||||||
fields:
|
fields:
|
||||||
uploads:
|
header.media_order:
|
||||||
unset@: true
|
unset@: true
|
||||||
header.title:
|
header.title:
|
||||||
type: text
|
type: text
|
||||||
|
|||||||
@@ -39,7 +39,14 @@ Kids & Family:
|
|||||||
- Kids & Family
|
- Kids & Family
|
||||||
Music:
|
Music:
|
||||||
- Music
|
- Music
|
||||||
News & Politics:
|
News:
|
||||||
|
- Business News
|
||||||
|
- Daily News
|
||||||
|
- Entertainment News
|
||||||
|
- News Commentary
|
||||||
|
- Politics
|
||||||
|
- Sports News
|
||||||
|
- Tech News
|
||||||
Religion & Spirituality:
|
Religion & Spirituality:
|
||||||
- Buddhism
|
- Buddhism
|
||||||
- Christianity
|
- Christianity
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
<rss version="2.0" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd">
|
<rss version="2.0" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd">
|
||||||
<channel>
|
<channel>
|
||||||
<title>{{ channel.title }}</title>
|
<title>{{ channel.title }}</title>
|
||||||
<link>{{ page.url(true) }}</link>
|
<link>{{ header.podcast.link }}</link>
|
||||||
<language>{{ channel.header.podcast.channelLanguage }}</language>
|
<language>{{ channel.header.podcast.channelLanguage }}</language>
|
||||||
<copyright>{{ channel.header.podcast.copyright }}</copyright>
|
<copyright>{{ channel.header.podcast.copyright }}</copyright>
|
||||||
<itunes:subtitle>{{ channel.header.podcast.itunes.subtitle }}</itunes:subtitle>
|
<itunes:subtitle>{{ channel.header.podcast.itunes.subtitle }}</itunes:subtitle>
|
||||||
@@ -17,33 +17,37 @@
|
|||||||
<itunes:summary>{{ (channel.content ? channel.content : channel.header.podcast.description)|striptags }}</itunes:summary>
|
<itunes:summary>{{ (channel.content ? channel.content : channel.header.podcast.description)|striptags }}</itunes:summary>
|
||||||
<description>{{ channel.header.podcast.description|striptags }}</description>
|
<description>{{ channel.header.podcast.description|striptags }}</description>
|
||||||
<itunes:owner>
|
<itunes:owner>
|
||||||
<itunes:name>{{ channel.header.podcast.itunes.owner.name }}</itunes:name>
|
<itunes:name>{{ channel.header.podcast.itunes.owner.name }}</itunes:name>
|
||||||
<itunes:email>{{ channel.header.podcast.itunes.owner.email }}</itunes:email>
|
<itunes:email>{{ channel.header.podcast.itunes.owner.email }}</itunes:email>
|
||||||
</itunes:owner>
|
</itunes:owner>
|
||||||
<itunes:image href="{{ base_url_absolute}}/{{ ((channel.header.podcast.itunes.image)|first.path) }}"/>
|
<itunes:image href="{{ base_url_absolute}}/{{ ((channel.header.podcast.itunes.image)|first.path) }}"/>
|
||||||
<itunes:category text="{{ channel.header.podcast.itunes.category }}">
|
<itunes:category text="{{ channel.header.podcast.itunes.category }}">
|
||||||
<itunes:category text="{{ channel.header.podcast.itunes.subcategory }}"/>
|
<itunes:category text="{{ channel.header.podcast.itunes.subcategory }}"/>
|
||||||
</itunes:category>
|
</itunes:category>
|
||||||
<itunes:explicit>{{ channel.header.podcast.itunes.explicit }}</itunes:explicit>
|
<itunes:explicit>{{ channel.header.podcast.itunes.explicit }}</itunes:explicit>
|
||||||
{% set episodes = page.collection({ 'items': '@self.descendants', 'order': {'by': 'date', 'dir': 'desc'}} ).ofType('podcast-episode') %}
|
{% set episodes = page.collection({ 'items': '@self.descendants', 'order': {'by': 'date', 'dir': 'desc'}} ).ofType('podcast-episode') %}
|
||||||
{% for episode in episodes %}
|
{% for episode in episodes %}
|
||||||
{% if episode.header.podcast.audio.meta %}
|
{% if episode.header.podcast.audio.meta %}
|
||||||
<item>
|
<item>
|
||||||
<title>{{episode.title}}</title>
|
<title>{{ episode.title }}</title>
|
||||||
<itunes:author>{{ episode.header.podcast.itunes.author }}</itunes:author>
|
<link>{{ episode.url(true) }}</link>
|
||||||
<itunes:subtitle>{{ episdoe.header.podcast.subtitle }}</itunes:subtitle>
|
{% if episode.header.podcast.episode_number %}
|
||||||
<itunes:summary>{{episode.content|striptags|truncate(120, true, " ", "…")}}</itunes:summary>
|
<itunes:episode>{{ episode.header.podcast.episode_number }}</itunes:episode>
|
||||||
<itunes:image href="{{base_url_absolute}}/{{ (episode.header.podcast.itunes.image)|first.path|absolute_url }}"/>
|
{% endif %}
|
||||||
{% if (episode.header.podcast.audio.remote) %}
|
<itunes:author>{{ episode.header.podcast.itunes.author }}</itunes:author>
|
||||||
<enclosure length="{{episode.header.podcast.audio.meta.enclosure_length}}" type="{{episode.header.podcast.audio.meta.type}}" url="{{episode.header.podcast.audio.remote}}"/>
|
<itunes:subtitle>{{ episdoe.header.podcast.subtitle }}</itunes:subtitle>
|
||||||
<guid>{{episode.header.podcast.audio.remote}}</guid>
|
<itunes:summary>{{episode.content|striptags|truncate(120, true, " ", "…")}}</itunes:summary>
|
||||||
{% else %}
|
<itunes:image href="{{base_url_absolute}}/{{ (episode.header.podcast.itunes.image)|first.path|absolute_url }}"/>
|
||||||
<enclosure length="{{episode.header.podcast.audio.meta.enclosure_length}}" type="{{episode.header.podcast.audio.meta.type}}" url="{{base_url_absolute}}/{{episode.header.podcast.audio.meta.guid|absolute_url}}"/>
|
{% if (episode.header.podcast.audio.remote) %}
|
||||||
<guid>{{base_url_absolute}}/{{episode.header.podcast.audio.meta.guid|absolute_url}}</guid>
|
<enclosure length="{{episode.header.podcast.audio.meta.enclosure_length}}" type="{{episode.header.podcast.audio.meta.type}}" url="{{episode.header.podcast.audio.remote}}"/>
|
||||||
{% endif %}
|
<guid>{{episode.header.podcast.audio.remote}}</guid>
|
||||||
<pubDate>{{ episode.header.publish_date ? episode.header.publish_date|date('r') : episode.date|date('r')}}</pubDate>
|
{% else %}
|
||||||
<itunes:duration>{{episode.header.podcast.audio.meta.duration}}</itunes:duration>
|
<enclosure length="{{episode.header.podcast.audio.meta.enclosure_length}}" type="{{episode.header.podcast.audio.meta.type}}" url="{{base_url_absolute}}/{{episode.header.podcast.audio.meta.guid|absolute_url}}"/>
|
||||||
<itunes:explicit>{{episode.header.podcast.itunes.explicit}}</itunes:explicit>
|
<guid>{{base_url_absolute}}/{{episode.header.podcast.audio.meta.guid|absolute_url}}</guid>
|
||||||
|
{% endif %}
|
||||||
|
<pubDate>{{ episode.header.publish_date ? episode.header.publish_date|date('r') : episode.date|date('r')}}</pubDate>
|
||||||
|
<itunes:duration>{{episode.header.podcast.audio.meta.duration}}</itunes:duration>
|
||||||
|
<itunes:explicit>{{episode.header.podcast.itunes.explicit}}</itunes:explicit>
|
||||||
</item>
|
</item>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|||||||
Reference in New Issue
Block a user