I have a RSS feed and I need to be able to get to the enclosure data
out of it.
Our code loads libRSS, here is what I have so far and its not working

<ul>
    {% for itm in rss.items %}
        <li>
                <a href="{{itm.link}}">{{itm.description}}</a>
                <a href="{{itm.enclosure.url}}">FLV</a>
        </li>
    {% endfor %}
</ul>

Here is what my feed looks like.

<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom"; version="2.0">
<channel>
<title>Videos Feed</title>
<link>http://example.com/</link>
<atom:link href="http://example.com/"; type="application/rss+xml"
rel="self"></atom:link>
<description>Videos from Example.com</description>
<language>en-us</language>
<category>football</category>

<item>
<title><![CDATA[Hawks Homecoming Victory]]></title>
<link>http://example.com/videos/detail/hawks-roll-homecoming-victory</
link>
<description>&lt;img src="http://media.example.com/albany/content/img/
videothumbs/2008/10/18/albany.jpg" alt="hawks homecoming victory"
align="left" hspace="10" /&gt; The Albany High Hawks remained
undefeated with a 33-3 homecoming victory over Ford.</description>
<guid>http://example.com/videos/detail/hawks-homecoming-victory</guid>
<enclosure url="http://web.example.com/static/content/video/
albany_wrapup.flv" length="3888010" type="video/x-flv"></enclosure>
</item>

</channel>
</rss>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to