|
|
||
# http://www.juno.co.uk/ author: youpy handle: http://www.juno.co.uk/products/ extract: <div id="topbar"><h3>(.*?)</h3>.*(<div id="productdataimage1">.*?</div>.*?<div id="tracklistcontainer">.*?</div>) extract_capture: title body
http://plagger.org/trac/changeset/1055
Index: lib/Plagger/Plugin/Publish/Feed.pm =================================================================== --- lib/Plagger/Plugin/Publish/Feed.pm (revision 1054) +++ lib/Plagger/Plugin/Publish/Feed.pm (working copy) @@ -60,13 +60,15 @@ if ($e->has_enclosure) { # RSS 2.0 by spec doesn't allow multiple enclosures - my @enclosures = $feed_format eq 'RSS' ? ($e->enclosures->[0]) : $e->enclosures; + my @enclosures = $e->enclosures; for my $enclosure (grep { defined $_->url && !$_->is_inline } @encosures) { $entry->add_enclosure({ url => $enclosure->url, length => $enclosure->length, type => $enclosure->type, }); + + last if $feed_format eq 'RSS' } }
http://plagger.org/trac/changeset/1058
Index: lib/Plagger/Plugin/CustomFeed/Simple.pm =================================================================== --- lib/Plagger/Plugin/CustomFeed/Simple.pm (revision 1054) +++ lib/Plagger/Plugin/CustomFeed/Simple.pm (working copy) @@ -4,6 +4,7 @@ use Encode; use HTML::TokeParser; +use HTML::ResolveLink; use Plagger::UserAgent; use Plagger::Util qw( decode_content extract_title ); @@ -43,6 +44,11 @@ my $content = decode_content($res); my $title = extract_title($content); + my $resolver = HTML::ResolveLink->new(base => $url); + $content = $resolver->resolve($content); + my $feed = Plagger::Feed->new; $feed->title($title); $feed->link($url);
http://plagger.org/trac/changeset/1059
- module: Subscription::Config config: feed: - url: http://www.juno.co.uk/grime-dubstep/this-week/ meta: follow_link: products/ - module: CustomFeed::Simple - module: Filter::EntryFullText - module: Filter::FindEnclosures - module: Filter::HEADEnclosureMetadata - module: Publish::Feed config: format: RSS dir: /home/youpy/var/Plagger/feed filename: %t.xml - module: Publish::Gmail config: mailto: youpy@shibuya.pl mailfrom: xxxxx@example.com mailroute: via: smtp host: smtp.example.com
P.S. official RSS(broken?): http://www.juno.co.uk/grime-dubstep/feeds/rss