Changeset 26

Show
Ignore:
Timestamp:
02/05/06 14:45:21
Author:
miyagawa
Message:

Support root level containers and ignore Bloglines' "Subscriptions" folder

Files:

Legend:

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

    r14 r26  
    5252    if (delete $outline->{opmlvalue}) { 
    5353        my $title = delete $outline->{title}; 
    54         push @$containers, $title if $depth > 0
     54        push @$containers, $title if $title ne 'Subscriptions'
    5555        for my $channel (values %$outline) { 
    5656            $self->walk_down($channel, $context, $depth + 1, $containers); 
    5757        } 
    58         pop @$containers if $depth > 0
     58        pop @$containers if $title ne 'Subscriptions'
    5959    } else { 
    6060        my $feed = Plagger::Feed->new; 
     
    6363        $feed->title($outline->{title}); 
    6464        $feed->tags($containers); 
     65        $context->dumper($feed->tags); 
    6566        $context->subscription->add($feed); 
    6667    }