Babble::Processors::Extra - Extra processors for Babble


Babble documentation  | view source Contained in the Babble distribution.

Index


NAME

Top

Babble::Processors::Extra - Extra processors for Babble

SYNOPSIS

Top

 use Babble;
 use Babble::Processors::Extra;

 my $babble = Babble->new
    (-processors => [ \&Babble::Processors::Extra::creator_map ]);
 $babble->add_sources (Babble::DataSource::RSS->new (
    -location => $some_location,
    -creator_map => { joe => { author => "Joe R. Blogger" } }));

DESCRIPTION

Top

Babble::Processors::Extra is a collection of optional, yet useful processors for Babble. In some circumstances, one might wish to use them. However, none of these are enabled by default, since they usually require some configuration.

METHODS

Top

creator_map()

This processor takes the -creator_map field of the source and if an items creator matches a key of it, adds all the keys from the hash pointed to by the source's key to the item.

parent_map()

This processor takes the -parent_map field of the source and copies all fields listed in -parent_map from the channel, to the current item.

AUTHOR

Top

Gergely Nagy, algernon@bonehunter.rulez.org

Bugs should be reported at http://bugs.bonehunter.rulez.org/babble.

SEE ALSO

Top

Babble, Babble::Processors


Babble documentation  | view source Contained in the Babble distribution.