Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

25 lines (13 sloc) 1.397 kB

PSP RSS Formatter

Code for psp-rss-formatter.heroku.com/ .

Problem

The Sony PSP RSS Channel app, can not handle <title> elements in the <item> node to be CDATA elements. This sinatra app simply turns the CDATA information into a string. The PSP won't be able to parse the title string, so it will name the mp3s, “-.mp3”. It checks to see if that file exists, which it will after the first feed, so you can not save more than one item per feed.

Solution

Using nokogiri to parse the RSS feed and replace the <title> element with a string representation of the CDATA information, the PSP will be able to save the data properly. This is built on top of sinatra. Now, people can point their PSP feeds to feeds based off of this app.

Contributors

Terence Lee <hone02 AT gmail DOT com> Josh Roberts (for bug testing)

Copyright/Licensing

Copyright © 2009 Terence Lee. See LICENSE for details.

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

Jump to Line
Something went wrong with that request. Please try again.