update pubDate to correct format in rss

date formatting was thrown off by including `Z`, which breaks on Spotify (and others). `Z` could change to `O`, or the format altogether could just be `r`, making it into the required RFC 2822 date format.
This commit is contained in:
Mary Warrington
2020-01-02 15:14:14 -08:00
committed by GitHub
parent 194e3bea26
commit ad29e2f44a

View File

@@ -41,7 +41,7 @@
<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}}"/>
<guid>{{base_url_absolute}}/{{episode.header.podcast.audio.meta.guid|absolute_url}}</guid>
{% endif %}
<pubDate>{{ episode.header.publish_date ? episode.header.publish_date|date('D, d M Y H:i:s Z') : episode.date|date('D, d M Y H:i:s Z')}}</pubDate>
<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>
@@ -49,4 +49,4 @@
{% endfor %}
</channel>
</rss>
{% endif %}
{% endif %}