|
Automatic editing of XML for PSP wifi MP3 streaming
TOTAL NEWB!!!!
So here's the deal. there is a way to stream MP3's to a play station protable by hosting them as RSS feeds from your own server.
I've got apache ruinning on my main PC, and the htdocs folder acts as a Live site (192.168.1.100) this works very well.
By creating an XML file from a script(?) I found, with a bit of editing, I can actully make an RSS feed from my server.
Clicking the link in the PSP propts the "so you want to add this RSS feed? it will be accessable from the RSS player blah, blah, blah" on the PSP.
works great. *In an interstellar buuuuuuuurst, I'm back to save uuuuuniverse*
here's the tough part.
the script(?) requires eiditing the path etc for EVERY song.
I only did Airbag to test if it worked, and it works great.
but there has got to be a better way, the writer of the script says "I recommend using your favorite programming language to automate the process of building the RSS/XML file. It would be really really tedious to build it by hand... Especially if you have a lot of songs in your library"
he's a programmer so that's easy for him to say.
is there a thing called an indexing script or something?
here is the link to the guys blog thing
and here is the script:
<rss version="2.0">
<channel>
<title>My Sony PSP Music Feed</title>
<link>http://YourServerIPAddr/AppDirectory/</link>
<description>My Home Music Feed for the Sony PSP</description>
<language>en-US</language>
<lastBuildDate>Mon, 26 Dec 2005 19:59:13 -1000</lastBuildDate>
<item>
<title>SongTitle.mp3</title>
<link>FileDirectory/SongTitle.mp3</link>
<pubDate>Mon, 26 Dec 2005 19:59:13 -1000</pubDate>
<enclosure
url="http://YourServerIPAddr/AppDirectory/FileDirectory/SongTitle.mp3"
length="4063232" type="audio/mpeg"/>
<description>SongTitle.mp3</description>
</item>
</channel>
</rss>
I really have no idea what i'm doing but i can stumble my way through just about anything so any help is appreciated!!
Last edited by Hemlock; 01-31-2006 at 05:02 PM..
|