Fails to read RSS XML

Discuss third-party additions, plugins and translations for PS3 Media Server

Fails to read RSS XML

Postby Pimmy » Fri Sep 23, 2011 12:13 pm

Hello,

I've re-installed my ancient version of PS3MediaServer (PMS) using the pms-linux package and Web content which is pre-defined in the WEB.conf can play fine..

Ages ago I've created an RSS feed to list some videos from YouTube which my daughter loves to watch and with the old version of PMS that worked fine.
Sadly after installing the pms-linux package (which is v1.25), this RSS XML fails to work - I get "There are no items to display" and there is sort of an error in the log, but nothing specific:

At startup:
Code: Select all
[main] DEBUG 12:02:52.347 Adding Children tunes / class: net.pms.dlna.virtual.VirtualFolder
[main] TRACE 12:02:52.347 Search extension for null


At attempt to read the RSS:
Code: Select all
[New I/O server worker #1-8] TRACE 12:00:57.916 Sent to socket: Content-Length: 597
[New I/O server worker #1-8] TRACE 12:00:57.916 Sent to socket: Content-Type: text/xml; charset="utf-8"
[New I/O server worker #1-8] TRACE 12:00:57.916 Sent to socket: Server: Linux-i386-2.6.32-5-686, UPnP/1.0, PMS/1.25.1


The XML for the RSS feed is (removed some of the items to reduce the size):
Code: Select all
<rss version="2.0">
  <channel>
    <title>Pimmy's Channel</title>
    <link>http://pimmy.homeip.net/wiki/ChildrenTunesRSS.xml</link>
    <description>Children tunes</description>
    <language>en-us</language>
    <generator>Pimmy</generator>
    <ttl>60</ttl>
    <item>
      <title>Twinkle Twinkle Little Star (The Wiggles)</title>
      <link>http://www.youtube.com</link>
      <description>Children Tunes</description>
      <enclosure url="http://www.youtube.com/watch?v=s3qDnPzHFuo" type="video/x-flv" />
    </item>
    <item>
      <title>Twinkle Twinkle Little Star</title>
      <link>http://www.youtube.com</link>
      <description>Children Tunes</description>
      <enclosure url="http://www.youtube.com/watch?v=yCjJyiqpAuU" type="video/x-flv" />
    </item>
    <item>
      <title>Five Little Monkeys</title>
      <link>http://www.youtube.com</link>
      <description>Children Tunes</description>
      <enclosure url="http://www.youtube.com/watch?v=ZhODBFQ2-bQ" type="video/x-flv" />
    </item>
    <item>
      <title>Old MacDonal had a farm</title>
      <link>http://www.youtube.com</link>
      <description>Children Tunes</description>
      <enclosure url="http://www.youtube.com/watch?v=7_mol6B9z00" type="video/x-flv" />
    </item>
    <item>
      <title>If You Are Happy</title>
      <link>http://www.youtube.com</link>
      <description>Children Tunes</description>
      <enclosure url="http://www.youtube.com/watch?v=FrsM9WggCdo" type="video/x-flv" />
    </item>
  </channel>
</rss>


So I have three questions:

1. The above XML fails to validate due to a missing length of the <enclosure> tag, but how can I find the value for each item? Download each video?
2. Although the above XML fails to get validated, how did it used to work with the old PMS? I dont even remember the version of the old PMS but its was released around year and a half ago.
3. What can I do to get the RSS XML accepted by the PMS? Please help..

Thanks very much for the help in advance.

Best Regards,

Pimmy
Pimmy
 
Posts: 16
Joined: Wed Jan 20, 2010 12:32 pm

Re: Fails to read RSS XML

Postby chocolateboy » Fri Sep 23, 2011 5:27 pm

chocolateboy
Project Member
 
Posts: 2579
Joined: Wed Sep 16, 2009 10:05 am

Re: Fails to read RSS XML

Postby Pimmy » Sun Sep 25, 2011 10:36 am

Thanks ChocolateBoy, you are always here to help.

Unfortunately I am still not capable to set a working RSS feed. I've followed your instructions and I've created a Playlist which shows perfectly well in YouTube, but the PMS is still not able to read it. I've tried various things:

- Generated the playlist XML, saved it on my Web server and set the link in WEB.conf as this:
Code: Select all
Definition:
videostream.Web,Pimmy,Tunes=http://pimmy.homeip.net/wiki/ChildrenTunesRSS.xml

Log:
[New I/O server worker #1-8] DEBUG 09:53:23.341 Adding Tunes / class: net.pms.dlna.virtual.VirtualFolder
[New I/O server worker #1-8] TRACE 09:53:23.341 Search extension for null


- Generated the feed XML, saved it on my Web server and set the link in WEB.conf as this:
Code: Select all
Definition:
videostream.Web,Pimmy,Feed=http://pimmy.homeip.net/wiki/FeedRSS.xml

Log:
[New I/O server worker #1-8] DEBUG 09:53:23.341 Adding Feed / class: net.pms.dlna.virtual.VirtualFolder
[New I/O server worker #1-8] TRACE 09:53:23.341 Search extension for null


- Made a note of the playlist ID and set it in the WEB.xml the same way as another link there which works:
'Playlist' works, 'Pimmy' does not work. Whats the difference?
Code: Select all
Definition:
videofeed.Web,YouTube,Pimmy=http://gdata.youtube.com/feeds/api/playlists/76F7A6B350736560?client=ytapi-youtube-browse
videofeed.Web,YouTube,Playlist=http://gdata.youtube.com/feeds/api/playlists/CAD9116C66720FCC?client=ytapi-youtube-browse

Log:
[New I/O server worker #1-8] DEBUG 09:53:23.355 Adding Pimmy / class: net.pms.dlna.virtual.VirtualFolder
[New I/O server worker #1-8] DEBUG 09:53:23.355 Adding 1324634003355 / class: net.pms.dlna.VideosFeed
[New I/O server worker #1-8] DEBUG 09:53:23.355 Adding Playlist / class: net.pms.dlna.virtual.VirtualFolder
[New I/O server worker #1-8] DEBUG 09:53:23.355 Adding 1324634003355 / class: net.pms.dlna.VideosFeed


-
- Even tried to use the YouTube's link to the playlist:
Code: Select all
Definition:
videostream.Web,Pimmy,YouTube Playlist=http://www.youtube.com/playlist?list=PL7A44ED0B25AE5A08

Log:
[New I/O server worker #1-8] DEBUG 09:53:23.340 Adding YouTube Playlist / class: net.pms.dlna.virtual.VirtualFolder
[New I/O server worker #1-8] TRACE 09:53:23.340 Search extension for null


None of the above works and I really dont understand the reason. Obviously I am doing something wrong with the YouTube API, but why would the PMS fail to even read a basic RSS XML (it used to do in the past)?

Thanks,

Pimmy
Pimmy
 
Posts: 16
Joined: Wed Jan 20, 2010 12:32 pm

Re: Fails to read RSS XML

Postby chocolateboy » Sun Sep 25, 2011 11:38 am

Use the YouTube Wizard to find the URL for the playlist. Enter your YouTube username, set the format to RSS 2.0, and play around with the options. You'll find the playlist URL in the output at the bottom of the page. If you're comfortable creating your own RSS, it shouldn't be hard to figure out.

Here's an example query:

Code: Select all
http://gdata.youtube.com/feeds/api/users/pimmycouk/playlists?max-results=50&alt=rss


Here's an example playlist URL:

Code: Select all
https://gdata.youtube.com/feeds/api/playlists/7A44ED0B25AE5A08


And here's a working WEB.conf entry (Video -> PS3 Media Server -> Web -> YouTube -> Children Tunes):

Code: Select all
videofeed.Web,YouTube=https://gdata.youtube.com/feeds/api/playlists/7A44ED0B25AE5A08


You'll need the latest version of PMSEncoder (and the latest version of PMS), which fixes a bug with HTTPS YouTube links.
chocolateboy
Project Member
 
Posts: 2579
Joined: Wed Sep 16, 2009 10:05 am

Re: Fails to read RSS XML - SOLVED

Postby Pimmy » Mon Sep 26, 2011 12:01 am

You are just amazing... thank you so much for the help.

Content doesnt play, but as you've said - I will upgrade PMS and try again.

As to the RSS XML, this is all solved.

Thanks once more,

Pimmy
Pimmy
 
Posts: 16
Joined: Wed Jan 20, 2010 12:32 pm

Re: Fails to read RSS XML - SOLVED

Postby Pimmy » Mon Sep 26, 2011 8:50 am

..and with the latest JARs all works beautifully..

Thank You,

Pimmy
Pimmy
 
Posts: 16
Joined: Wed Jan 20, 2010 12:32 pm


Return to Additions and Plugins

Who is online

Users browsing this forum: No registered users and 4 guests