FAQ  •  Register  •  Login

RSS Parsing - Links Map

<<

mike_metro

Serviio lover

Posts: 55

Joined: Sat Jan 14, 2012 4:06 am

Post Tue Jan 17, 2012 2:02 am

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)

  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&amp;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&amp;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.
<<

jhb50

DLNA master

Posts: 2843

Joined: Thu Jun 30, 2011 9:32 pm

Post Tue Jan 17, 2012 2:31 am

Re: RSS Parsing - Links Map

I don't know if this helps you but see the attached groovy to see how I go back and parse the rss my self to get what I want.
Attachments
Cleeseblog.groovy
(3.19 KiB) Downloaded 470 times
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17212

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Tue Jan 17, 2012 9:59 am

Re: RSS Parsing - Links Map

Thumbnail is picked based on the resolution so that it's closest to the DLNA spec thumbnail resolution.
<<

mike_metro

Serviio lover

Posts: 55

Joined: Sat Jan 14, 2012 4:06 am

Post Wed Jan 18, 2012 5:10 am

Re: RSS Parsing - Links Map

Thanks for the responses guys. Figured out my issue, wasn't with RSS but with my match logic.

Return to Plugin development

Who is online

Users browsing this forum: No registered users and 20 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.