RSS Parsing - Links Map
I'm having a little difficulty with the way the link map is parsed in an RSS file. Is there any way to call to the parser to test in the Main()? I have the plugin working, but my assumptions to what items were being passed into the map were not correct.
With the below, I would think that:
link.default = 'http://www.crackle.com/c/Flatliners/Flatliners/2402711'
link.thumbnail would be the first, last, or an array (since their are 3 items with media:thumbnail)
With the below, I would think that:
link.default = 'http://www.crackle.com/c/Flatliners/Flatliners/2402711'
link.thumbnail would be the first, last, or an array (since their are 3 items with media:thumbnail)
- Code:
<item>
<pubDate>Sun, 01 Jan 2012 00:00:00 GMT</pubDate>
<title>Flatliners</title>
<link>http://www.crackle.com/c/Flatliners/Flatliners/2402711</link>
<guid isPermaLink="false">2402711</guid>
<enclosure url="http://www.crackle.com/p/Flatliners/Flatliners.swf?id=2402711&ml=o%3D32%26fmx%3D5000%26fx%3D%26flcmt%3D82_20_840%26pc%3D20_840%26bc%3D" length="279208494" type="application/x-shockwave-flash" />
<media:category>Flatliners</media:category>
<media:rating scheme="urn:mpaa">r</media:rating>
<description><![CDATA[<a href="http://www.crackle.com/c/Flatliners/Flatliners/2402711#ml=o%3d32%26fmx%3d5000%26fx%3d%26flcmt%3d82_20_840%26pc%3d20_840%26bc%3d "><img src="http://www.crackle.com/video/Redirect.ashx?id=2402711&p=tnw.jpg" /></a><br /><br />Julia Roberts, Kiefer Sutherland and Kevin Bacon star in this "edge of your seat" thriller as medical students who push themselves to the boundaries of life itself and touch the face of death. This offbeat drama is directed by Joel Schumacher.<br /><br />Original Release Year: 1990]]></description>
<author>info@crackle.com (Movie Uploader)</author>
<media:content url="http://www.crackle.com/p/Flatliners/Flatliners.swf?id=2402711&ml=o%3D32%26fmx%3D5000%26fx%3D%26flcmt%3D82_20_840%26pc%3D20_840%26bc%3D" type="application/x-shockwave-flash" medium="video" height="400" width="544" duration="6857" />
<media:player url="http://www.crackle.com/c/Flatliners/Flatliners/2402711" />
<media:title type="html">Flatliners</media:title>
<media:description>Julia Roberts, Kiefer Sutherland and Kevin Bacon star in this "edge of your seat" thriller as medical students who push themselves to the boundaries of life itself and touch the face of death. This offbeat drama is directed by Joel Schumacher.</media:description>
<media:thumbnail url="http://images2.crackle.com/1/l/kk/6nbvb_tnw.jpg?ts=201112092044" width="121" height="68" />
<media:thumbnail url="http://images2.crackle.com/1/l/kk/6nbvb_tnb.jpg?ts=201112092044" width="128" height="96" />
<media:thumbnail url="http://images2.crackle.com/1/l/kk/6nbvb_tne.jpg?ts=201112092044" width="400" height="224" />
<media:thumbnail url="http://images2.crackle.com/1/l/kk/6nbvb_tnl.jpg?ts=201112092044" width="140" height="79" />
<media:keywords>Flatliners, 1990, Kiefer Sutherland, Julia Roberts, Kevin Bacon, William Baldwin, Oliver Platt, Joel Schumacher, Peter Filardi, Rick Bieber, Michael Douglas, Columbia Pictures, Sci-Fi, Thriller, Flatliners, Kiefer Sutherland , Julia Roberts , Kevin Bacon , William Baldwin , Oliver Platt, watch, free, streaming, full length, movies, Crackle</media:keywords>
<media:popularity scale="5">4</media:popularity>
<media:credit role="director">Movie Uploader</media:credit>
<media:credit role="author">2818477</media:credit>
<media:restriction relationship="allow" type="country">AS GU MP UM FM MH PW PR US VI</media:restriction>
</item>
Last edited by mike_metro on Tue Jan 17, 2012 2:40 am, edited 1 time in total.