Changeset 1882

Show
Ignore:
Timestamp:
11/28/06 18:52:52
Author:
miyagawa
Message:

CustomFeed?::Simple: absolutify URL in XPath extraction

Files:

Legend:

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

    r1686 r1882  
    6363            next if !$text || $text eq '[IMG]'; 
    6464 
    65             my $url = URI->new_abs($token->[1]->{href}, $url); 
    66             next if $seen{$url->as_string}++; 
     65            my $item_url = URI->new_abs($token->[1]->{href}, $url); 
     66            next if $seen{$item_url->as_string}++; 
    6767 
    6868            my $entry = Plagger::Entry->new; 
    6969            $entry->title($text); 
    70             $entry->link($url); 
     70            $entry->link($item_url); 
    7171            $feed->add_entry($entry); 
    7272 
     
    8484            my $entry = Plagger::Entry->new; 
    8585            $entry->title($title); 
    86             $entry->link($href); 
     86            $entry->link(URI->new_abs($href, $url)); 
    8787            $feed->add_entry($entry); 
    8888