Changeset 532

Show
Ignore:
Timestamp:
04/04/06 18:11:38
Author:
miyagawa
Message:

differenciate Y! 360 JP blast as a separated feed

Files:

Legend:

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

    r520 r532  
    2727       $feed->aggregator(sub { $self->aggregate(@_) }); 
    2828    $context->subscription->add($feed); 
     29 
    2930} 
    3031 
     
    5960    $feed->title('Yahoo! 360'); 
    6061    $feed->link('http://360.yahoo.co.jp/friends/content.html'); 
     62 
     63    my $blast_feed; 
     64    if ($self->conf->{fetch_blast}) { 
     65        $blast_feed->type('yahoo360jp-blast'); 
     66        $blast_feed->title('Yahoo! 360 ひとこと'); 
     67        $blast_feed->link('http://360.yahoo.co.jp/'); 
     68    } 
    6169 
    6270    # get friends blogs 
     
    129137        my $content = decode('utf-8', $mech->content); 
    130138        while ($content =~ /$re/g) { 
    131             $self->add_entry($feed, { 
     139            $self->add_entry($blast_feed, { 
    132140                profile  => $1, 
    133141                nickname => $2, 
     
    147155    $feed->sort_entries; 
    148156    $context->update->add($feed); 
     157    $context->update->add($blast_feed) if $blast_feed; 
    149158} 
    150159