alternateEnclosure: mirror

This commit is contained in:
root 2022-01-21 01:30:04 +01:00
parent 4d2754bbfa
commit 4a6a52f726

View file

@ -46,6 +46,11 @@
<link>http://www.ondarossa.info{{node.path.0.alias}}</link>
<enclosure url="{{ audiourl | replace({"https://": "http://"}) | escape('html_attr') }}" type="audio/{{ext}}" length="1024"></enclosure>
<podcast:alternateEnclosure default="true" type="audio/{{ext}}" rel="default" >
<podcast:source uri="{{ audiourl | escape('html_attr') }}" />
<podcast:source
uri="{{ audiourl | replace({"https://archive.org/": "https://archive.degenerazione.xyz/"}) | escape('html_attr') }}" />
</podcast:alternateEnclosure>
{% if img != "" %}
{% set img_ext = img|split('.')|last|lower|replace({jpg: 'jpeg'}) %}
<itunes:image href="{{node.img.0.uri}}" type="image/{{img_ext}}" />