Changeset 38
- Timestamp:
- 02/06/06 17:55:27
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/plagger/lib/Plagger/Plugin/CustomFeed/Mixi.pm
r36 r38 32 32 unless ($response->is_success) { 33 33 $context->log(error => "Login failed."); 34 return; 34 35 } 35 36 … … 47 48 48 49 my $i = 0; 50 my $blocked = 0; 49 51 for my $msg (@msgs) { 50 52 next unless $msg->{image}; # external blog … … 57 59 $entry->date( Plagger::Date->parse($format, $msg->{time}) ); 58 60 59 if ($self->conf->{fetch_body} ) {61 if ($self->conf->{fetch_body} && !$blocked) { 60 62 $context->log(info => "Fetch body from $msg->{link}"); 61 63 Time::HiRes::sleep( $self->conf->{fetch_body_interval} || 1.5 ); … … 69 71 } 70 72 $entry->body($body); 73 } else { 74 $context->log(warn => "Fetch body failed. You might be blocked?"); 75 $blocked++; 71 76 } 72 77 }
