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

Owner: Nobody in particular
Requestors: rayg [...]

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

Subject: code snippet to add enclosure support
Download (untitled) / with headers
text/plain 461b
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" }, );

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to