Browse Source

alternateEnclosure: mirror

root 2 years ago
parent
commit
4a6a52f726
1 changed files with 5 additions and 0 deletions
  1. 5 0
      templates/podcast.html.twig

+ 5 - 0
templates/podcast.html.twig

@@ -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}}" />