Archive for August, 2004

I-PHPodder update

Monday, August 23rd, 2004

I just found out that the mp3-links are in the <enclosure> tag of an rss (2.0) feed. So that simplifies my script.
I changed the script, it now scans for the enclosure tag which type =”audio/mpeg” and just copy the mp3 in the url-attribute, so i don’t have to do any fancy string-manipulation stuff.

download I-PHPodder version 0.02

I-PHPodder

Monday, August 23rd, 2004

I spend my saturday writing a very simple script that would work somehow like Adam Curry’s i-podder script as far as i understand it (I don not have a mac..)
Because i’m an internet developer and do my everyday coding in php i decided to use php. It’s not a brilliant peace of work but it does the job. I decided to call it i-phpodder ;-)
The script scans rss-feeds for mp3-links included in the description-tag and downloads these mp3-files to your local-disk.

so here’s version 0.01 of I-phpodder

There are two files in the zip:
1. i_phpodder.php
2. i_phpodder_feeds.db

The first one is the script itself and you should not have to change anything in there. In the second one you type the rss-feeds that you would like to be searched and the destination-folder for the downloaded mp3’s:

http://live.curry.com/rss.xml|N:curry
http://radio.weblogs.com/0100368/rss.xml|N:gilchrist

Make sure you place those in the same directory and that that directory is writable cause the first time you run the script its going to create a third file called i_phpodder_memory.db in which the names of downloaded items are placed to prevent you from downloading the same file multiple times.

php.ini - settings
Because the downloads will take some time the normal setting of max_execution_time (default = 30 secs) will not do. I changed it to 100000 just to be sure

ok, allready told you that the script is not perfect so i’m open for suggestions!

Greetz, Pieter Overbeeke