XML::Atom::Ext::Media - An XML::Atom extenstion for the yahoo Media RSS extension
version 0.092840
A for the moment rather crude and simple module for handeling MRSS elements
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;
The ATTRIBUTES we describe here end up on XML::Atom::Entry-objects, except for element_ns.
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.
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.
Like media, but will return a array ref in SCALAR context, and the list in list context.
Returns the XML::Atom::Namespace object representing our xmlns:media="http://search.yahoo.com/mrss/">.
Andreas Marienborg <andremar@cpan.org>
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.
To install XML::Atom::Ext::Media, copy and paste the appropriate command in to your terminal.
cpanm
cpanm XML::Atom::Ext::Media
CPAN shell
perl -MCPAN -e shell install XML::Atom::Ext::Media
For more information on module installation, please visit the detailed CPAN module installation guide.