Changeset 1834

Show
Ignore:
Timestamp:
11/19/06 15:53:05
Author:
miyagawa
Message:

Added 'dont_use_notifier_api' config directive so you can skip Notifier API

Files:

Legend:

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

    r1734 r1834  
    6666    my($self, $context) = @_; 
    6767 
    68     my $count = $self->{bloglines}->notify(); 
    69     $context->log(info => "You have $count unread item(s) on Bloglines."); 
    70     if ($count) { 
     68    my $to_fetch = $self->conf->{dont_use_notifier_api}; 
     69    unless ($to_fetch) { 
     70        my $count = $self->{bloglines}->notify(); 
     71        $context->log(info => "You have $count unread item(s) on Bloglines."); 
     72        $to_fetch = $count; 
     73    } 
     74 
     75    if ($to_fetch) { 
    7176        my $feed = Plagger::Feed->new; 
    7277        $feed->aggregator(sub { $self->sync(@_) }); 
     
    248253You can use this tags information using Rules in later phase. 
    249254 
     255=item dont_use_notifier_api 
     256 
     257Turn it on when you want to skip Notifier API, which could sometimes 
     258be broken and always returns 0 instead of the actuan unread count. 
     259 
    250260=back 
    251261