Changeset 1059

Show
Ignore:
Timestamp:
07/07/06 00:05:19
Author:
miyagawa
Message:

CustomFeed?::Simple: resolve relative links before matching
via http://subtech.g.hatena.ne.jp/youpy/20060705/p1
Fixes #325

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/plagger/lib/Plagger/Plugin/CustomFeed/Simple.pm

    r788 r1059  
    55use Encode; 
    66use HTML::TokeParser; 
     7use HTML::ResolveLink; 
    78use Plagger::UserAgent; 
    89use Plagger::Util qw( decode_content extract_title ); 
     
    4344    my $content = decode_content($res); 
    4445    my $title   = extract_title($content); 
     46 
     47    my $resolver = HTML::ResolveLink->new(base => $url); 
     48    $content = $resolver->resolve($content); 
    4549 
    4650    my $feed = Plagger::Feed->new;