Changeset 143

Show
Ignore:
Timestamp:
02/24/06 20:08:07
Author:
miyagawa
Message:

Frepa: under fetch_body mode, replacde title with the full one in case it's trimmed in list page

Files:

Legend:

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

    r128 r143  
    6565                   $body =~ s!<br>!<br />!g; 
    6666                $entry->body($body); 
     67                $entry->title( decode('euc-jp', $item->{subject}) ); # replace with full title 
    6768            } else { 
    6869                $context->log(warn => "Fetch body failed. You might be blocked?"); 
     
    165166    my $reg = $self->detail_regexp(); 
    166167    if ($html =~ m|$reg|is) { 
    167         $item = +{description => $7}; 
     168        $item = +{ subject => $6, description => $7}; 
    168169    } 
    169170