Podcast Parser v. 1.0

Requirements: PHP5 with simpleXML
Author: Piotr Malinski, www.english.rk.edu.pl, riklaunim@gmail.com

This class parses the XML feeds for podcasts (see www.podcast.net and others) and returns arrays with the data. It can also make an XML file-feed for a podcast.

CONSTRUCTOR
$p = new podcast();

GETING DATA FROM A FEED
$p->cast($link);
$p->get_base_data_array();
$p->get_podcast_arrays();
Where $link is a url/link to a podcast FEED. get_base_data_array() will return an array with basic data about the podcast like author, title, description etc. get_podcast_arrays - will return an array with podcasts.

GENERATE A PODCAST FEED
$p->make_xml_podcast_file($base, $podcasts);
Returns a string - feed XML code. Requires two arrays - with basic data and with podcasts.

"$base" structure:
Array
(
    [title] => TITLE OF THE PODCAST
    [author] => NAME OF THE AUTHOR
    [desc] => PODCAST DESCRIPTION
    [link_url] => URL TO THE PODCAST SITE
    [link_name] => SITE NAME
    [lang] => LANGUAGE
    [owner] => PODCAST OWNER
    [owner_email] => OWNER EMAIL
    [image_url] => IMAGE URL
    [image_img] => LINK TO IMAGE
    [category] => BASIC CATEGORY
)

"$podcasts" structure:
Array
(
    [0] => Array
        (
            [title] => PODCAST TITLE
            [link] => LINK TO MP3/OTHER
            [desc] => DESCRIPTION
            [pubdate] => DATE OF PUBLICATION
            [duration] => DURATION OF THE PODCAST
            [length] => LENGTH IN BYTES OF THE PODCAST FILE
        )

    [1] => Array
        (
            [title] => Pragmatic Python
            [link] => http://libsyn.com/media/awaretek/Python411_051218_PragmaticPython.mp3
            [desc] => Pragmatic Python, Python Standard Library, Pickle, the Python Challenge, Komodo, WingIDE, and Bruce, the Presentation Tool.
            [pubdate] => 18 Dec 2005 16:00:00 -0400
            [duration] => 27:08
            [length] => 6698885
        )
)
See the examples for more details :)