Changeset 1075

Show
Ignore:
Timestamp:
07/12/06 23:49:59
Author:
ko
Message:

fixed Publish::LivedoorClip?

  • quieted warnings from WWW::Mechanize
  • split to messages for post and sleep
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/plagger/lib/Plagger/Plugin/Publish/LivedoorClip.pm

    r1073 r1075  
    2222        my $mech = Plagger::Mechanize->new; 
    2323        $mech->agent_alias('Windows IE 6'); 
     24        $mech->quiet(1); 
    2425        $self->{mech} = $mech; 
    2526    } 
     
    5657        if ($@) { 
    5758           $context->log(info => "can't submit: " . $args->{entry}->link); 
     59        } else { 
     60            $context->log(info => "Post entry success."); 
    5861        } 
    5962    } else { 
     
    6265  
    6366    my $sleeping_time = $self->conf->{interval} || 3; 
    64     $context->log(info => "Post entry success. sleep $sleeping_time."); 
     67    $context->log(info => "sleep $sleeping_time."); 
    6568    sleep( $sleeping_time ); 
    6669} 
     
    104107=head1 NAME 
    105108 
    106 Plagger::Plugin::Publish::LivedoorClip - Post to livedoor Clip automatically 
     109Plagger::Plugin::Publish::LivedoorClip - Post to livedoor clip automatically 
    107110 
    108111=head1 SYNOPSIS 
     
    127130=head1 SEE ALSO 
    128131 
    129 L<Plagger>, L<Plagger::Plugin::Publish::HatenaBookmark.pm>, L<Plagger::Mechanize> 
     132L<Plagger>, L<Plagger::Plugin::Publish::HatenaBookmark>, L<Plagger::Mechanize> 
    130133 
    131134=cut