Changeset 625

Show
Ignore:
Timestamp:
04/20/06 15:02:10
Author:
miyagawa
Message:

LivedoorReader?: skip if there's no modified_on. more debugging

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/plagger/lib/Plagger/Plugin/Subscription/LivedoorReader.pm

    r622 r625  
    7171 
    7272    for my $sub (@$subs) { 
     73        $context->log(debug => "get unread items of $sub->{subscribe_id}"); 
    7374        my $data = $self->_request("/api/unread", { subscribe_id => $sub->{subscribe_id} }); 
    7475        $self->_request("/api/touch_all", { subscribe_id => $sub->{subscribe_id} }) 
     
    8283        $feed->image({ url => $data->{channel}->{image} || $sub->{icon} }); 
    8384        $feed->meta->{livedoor_reader_id} = $sub->{subscribe_id}; 
    84         $feed->meta->{rate} = $sub->{rate}; # xxx star? 
     85        $feed->meta->{rate} = $sub->{rate}; 
    8586        $feed->add_tag($_) for @{$sub->{tags}}; 
    8687        $feed->add_tag($sub->{folder}) if $sub->{folder}; 
    87         $feed->updated( Plagger::Date->from_epoch($sub->{modified_on}) )
     88        $feed->updated( Plagger::Date->from_epoch($sub->{modified_on}) ) if $sub->{modified_on}
    8889        $feed->description($data->{channel}->{description}); 
    8990        $feed->meta->{livedoor_reader_subscribers_count} = $data->{channel}->{subscribers_count};