Home > computing, Uncategorized > SBS Playlist to RSS Feed Perl Script v2

SBS Playlist to RSS Feed Perl Script v2

I have made some changes to my original script. This new perl script will scrape info from sbs.com.au and give an RSS feed of the items in the specified playlist. I only know of two playlists (94 = Latest Full Episodes, 95 = Preview Clips). Only one line needs to be changed to use the script to give the RSS feed of a different playlist. The major improvement is the items that are only available over RTMP now have the correct URL which was previously incorrect (but now the script runs slower as it has to grab more pages from the web). I use the url, http://player.sbs.com.au/video/smil/index/standalone/$item_code/ to find out the url details.

FLVStreamer appears to do a good job of downloading media over the RTMP protocol. Just use ./flvstreamer -r rtmp://file.flv > file.flv. Mozilla has an article on how to add protocol’s to firefox here. But I didn’t bother with that as the command is simple as it is, and building an app with a save as dialogue is beyond me for now, but I hope to learn that soon.

[Update: It seems that you also need to have the –swfUrl argument set (‘http://player.sbs.com.au/web/flash/standalone_video_player_application.swf’ works.). Also the perl script doesn’t get the file name correctly (it uses the thumbnail image url, rather it should be using the url’s given at the /video/smil/index pages).]

For local use the current format will probably be what you want, but in a production environment you probably want to have the script save the RSS file to disk and have people hit that RSS file with the requests. Just set the perl script to run every now and then. Unfortunately I can’t seem to upload .pl files to WordPress (I’ve put a link, but that will expire eventually)… I really need to get my own site.. There is so much customisation I would like to do and many experiments to try out on a live server, but the $$$’s are too much…

On another note I tried out EPIC (Eclipse Perl Integration), which was fairly simple to install. It seems much nicer than using a plain text editor and command line, especially the debugging abilities that it adds.


Categories: computing, Uncategorized Tags: ,
  1. sge
    August 15, 2009 at 5:58 pm

    “I only know of two playlists (94 = Latest Full Episodes, 95 = Preview Clips)”


    God I have too much time on my hands 😛

    There’s some pretty good things there, though the list it may be bit out of date (wrote it months ago).

  2. Andrew Harvey
    September 12, 2009 at 7:59 pm

    “building an app with a save as dialogue is beyond me for now, but I hope to learn that soon.” Did some reading, its not to hard if I read the GTK+ manual.

    But I don’t need that there is a program called zenity which can do this for me.

  1. September 12, 2009 at 2:03 pm

I don't read comments anymore due to an increase in spam comments. If you want to get in touch please send me an email (see tianjara.net for details).

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: