Bonjour,
Je cherche à créer un podcast (sans passer par un plugin) suivant l’article (article qui est marquée du mot clé « podcast »). Il est proposé dans l’article un lien de ce type #URL_PAGE{podcast}&id_article=#ID_ARTICLE qui appelle le fichier « podcast.html » . Ce fichier est composé comme ceci :
#HTTP_HEADER{Content-Type: text/xml; charset=utf-8}
<rss xmlns:podcastRF="#URL_SITE_SPIP" version="2.0" >
<BOUCLE_podcast_rubriques(ARTICLES){id_article=#ENV{id_article}}>
<BOUCLE_mp3podcast(DOCUMENTS){id_article}{extension=mp3}{0,1}{par date}{age<30}>
<channel>
<title>[(#TITRE)] </title>
<description>[(#DESCRIPTIF)]</description>
<link>[(#URL_ARTICLE|url_absolue)]</link>
<language>[(#LANG)]</language>
<copyright>Copyright [(#DATE)] </copyright>
<lastBuildDate>[(#DATE|affdate)] [(#DATE|heures)]:[(#DATE|minutes)]:[(#DATE|secondes)]</lastBuildDate>
<pubDate>[(#DATE|affdate{'r'})]</pubDate>
<docs></docs>
<webMaster></webMaster>
<item>
<title>[(#TITRE|textebrut)] </title>
<link>[(#URL_ARTICLE|url_absolue)]</link>
<guid>[(#LOGO_DOCUMENT|fichier|url_absolue)]</guid>
<description> [(#DESCRIPTIF|textebrut)]</description>
<enclosure url=["(#URL_DOCUMENT|url_absolue)"] length="#TAILLE" type="[(#MIME_TYPE)]"/>
<category>Podcasts</category>
<pubDate>[(#DATE|affdate{'r'})]</pubDate>
</item>
</channel>
</BOUCLE_mp3podcast>
</BOUCLE_podcast_rubriques>
</rss>
Ceci ne fonctionne pas …
Le flux fonctionne en rss, mais rentré l’adresse dans itunes il ne détecte rien et signale un problème …
Voici ce que cela donne une fois le squelette calculé :
<rss xmlns:podcastRF="[http://monsite.com](http://monsite.com)" version="2.0" >
<channel>
<title>Podcast article sur le piano </title>
<description></description>
<link>[http://monsite.com/spip.php?article24](http://monsite.com/spip.php?article24)</link>
<language>fr</language>
<copyright>Copyright 2009-09-29 19:01:00 </copyright>
<lastBuildDate>29 septembre 2009 19:01:00</lastBuildDate>
<pubDate>Tue, 29 Sep 2009 19:01:00 +0200</pubDate>
<docs></docs>
<webMaster></webMaster>
<item>
<title>Fantaisie pour piano </title>
<link>[http://monsite.com/spip.php?article24](http://monsite.com/spip.php?article24)</link>
<guid>[http://monsite.com/prive/vignettes/mp3.png](http://monsite.com/prive/vignettes/mp3.png)</guid>
<description> </description>
<enclosure url="[http://monsite.com/IMG/mp3/fantaisie_pour_piano.mp3](http://monsite.com/IMG/mp3/fantaisie_pour_piano.mp3)" length="1353" type="audio/mpeg"/>
<category>Podcasts</category>
<pubDate>Tue, 29 Sep 2009 19:01:00 +0200</pubDate>
</item>
</channel>
</rss>
Serait-ce que l'extension du fichier rss doit absolument être en xml ?
Sinon (autre sujet... mais pas sans rapport) j'ai testé les boucles dans un fichier xml en me référant à cette article [http://www.veille-web.fr/index.php/pages/SPIP-xml](http://www.veille-web.fr/index.php/pages/SPIP-xml), ceci pour le dewplayer et cela marche très bien.
Merci de votre aide.
Bonne journée
Vincent