Changeset 1896

Show
Ignore:
Timestamp:
11/30/06 03:08:33
Author:
miyagawa
Message:

CustomFeed?::Simple: a small optimization not to call extract_title when it's not necessary

Files:

Legend:

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

    r1894 r1896  
    4545 
    4646    my $content = decode_content($res); 
    47     my $title   = extract_title($content); 
    4847 
    4948    my $feed = Plagger::Feed->new; 
    50     $feed->title($args->{feed}->title || $title); 
     49    $feed->title($args->{feed}->title || extract_title($content)); 
    5150    $feed->link($url); 
    5251