Ticket #257 (task)

Opened 13 years ago

Port patch to XML::Feed enclosures

Status: new

Reported by: miyagawa Assigned to: miyagawa
Priority: major Milestone:
Component: Plagger Version:
Keywords: Cc:
use XML::Feed::Enclosure;

$enclosure = XML::Feed::Enclosure->new;
$enclosure->url($url);
$enclosure->length($length);
$enclosure->type($mime);

$entry->enclosure($enclosure);     # set
$entry->add_enclosure($enclosure); # append

@enclosures = $entry->enclosures; # list
$enclosure  = $entry->enclosure;  # 1st enclosure