Changeset 1954

Show
Ignore:
Timestamp:
06/14/07 13:48:55
Author:
miyagawa
Message:

added needs_content option to FindEnclosures? plugins, which defaults to 1

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/plagger/lib/Plagger/Plugin/Filter/FindEnclosures.pm

    r1741 r1954  
    150150        if ( $plugin->handle($url) ) { 
    151151            Plagger->context->log(debug => "Try $url with " . $plugin->site_name); 
    152             $content ||= $self->fetch_content($url) or return; 
     152            if ($plugin->needs_content) { 
     153                $content ||= $self->fetch_content($url) or return; 
     154            } 
    153155 
    154156            if (my $enclosure = $plugin->find({ content => $content, url => $url })) { 
     
    191193sub handle { 0 } 
    192194sub find { } 
     195sub needs_content { 1 } 
    193196 
    1941971;