NAME
XML::Atom::Ext::Media - An XML::Atom extenstion for the yahoo Media RSS extension
VERSION
version 0.092840
DESCRIPTION
A for the moment rather crude and simple module for handeling MRSS elements
SYNOPSIS
use XML::Atom::Feed;
use XML::Atom::Ext::Media;
my $feed = XML::Atom::Feed->new(
URI->new('http://gdata.youtube.com/feeds/api/users/andreasmarienborg/uploads')
);
my ($entry) = $feed->entries;
my ($media) = $entry->media_groups;
my $content = $media->default_content;
my $thumb_url = $media->thumbnail->url;
IMPLEMENTATION
The ATTRIBUTES we describe here end up on XML::Atom::Entry-objects, except for element_ns.
ACKNOWLEDGEMENTS
Thank you to XML::Atom::Ext::OpenSearch for being invaluable aid in figuring out how to write extension for XML::Atom. Thank you to MIYAGAWA for XML::Atom.
ATTRIBUTES
media
Will look for any elements of the type <media:group> (as long as xmlns:media='http://search.yahoo.com/mrss/').
In SCALAR context it will return the first sich element, in list context it will return all such elements as a list.
media_groups
Like media, but will return a array ref in SCALAR context, and the list in list context.
element_ns
Returns the XML::Atom::Namespace object representing our xmlns:media="http://search.yahoo.com/mrss/">.
AUTHOR
Andreas Marienborg <andremar@cpan.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2009 by Andreas Marienborg.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.