Changeset 834

Show
Ignore:
Timestamp:
05/29/06 15:44:37
Author:
miyagawa
Message:

try Bloglines with mark_read=0 first, to avoid data loss due to bad XML.
Fixes #215

Files:

Legend:

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

    r790 r834  
    1 package Plagger::Plugin::Subscription::Bloglines; 
     1pakage Plagger::Plugin::Subscription::Bloglines; 
    22use strict; 
    33use base qw( Plagger::Plugin ); 
     
    117117    # catch bad XML feed by Bloglines 
    118118    eval { 
    119         @updates = $self->{bloglines}->getitems(0, $mark_read); 
     119        @updates = $self->{bloglines}->getitems(0, 0); 
    120120    }; 
    121121 
     
    129129            } 
    130130        } 
     131    } elsif ($mark_read) { 
     132        # no error found with XML ... call the API again to mark read 
     133        eval { 
     134            @updates = $self->{bloglines}->getitems(0, $mark_read); 
     135        }; 
    131136    } 
    132137