Skip Menu |

This queue is for tickets about the XML-RSS CPAN distribution.

Report information
The Basics
Id: 5690
Status: resolved
Priority: 0/
Queue: XML-RSS

People
Owner: Nobody in particular
Requestors: rayg [...] varchars.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: (no value)
Fixed in: (no value)



Subject: code snippet to add enclosure support
add inside as_rss_2_0: if (my $e = $item->{enclosure}) { $output .= '<enclosure ' . join(' ', map {qq($_=").$self->encode($$e{$_}).qq(")} $ . '/>' . "\n"; } and can be used like so: $rss->add_item( title => $rec{title}, description => $rec->{description}, enclosure => { url=>$rec->{url}, type=>"application/x-bittorrent" }, );