MP3-PodcastFetch
view release on metacpan - search on metacpan
view release on metacpan or search on metacpan
lib/MP3/PodcastFetch.pm view on Meta::CPAN
=over 4
=item $feed->update($channel)
Update all episodes contained in the indicated
MP3::PodcastFetch::Feed::Channel object (this object is generated by
podcast_fetch() in the course of downloading and parsing the RSS file.
=cut
sub update {
my $self = shift;
my $channel = shift;
my $title = $channel->title;
my $description = $channel->description;
my $dir = $self->generate_directory($channel);
my @items = sort {$b->timestamp <=> $a->timestamp} grep {$_->url} $channel->items;
my $total = @items;
# if there are more items than we want, then remove the oldest ones
if (my $max = $self->max) {
view all matches for this distributionview release on metacpan - search on metacpan
( run in 1.114 second using v1.00-cache-2.02-grep-82fe00e-cpan-4673cadbf75 )