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


Back to Top


NAME

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

Back to Top


SYNOPSIS

 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" } }));

Back to Top


DESCRIPTION

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.

Back to Top


METHODS

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.

Back to Top


AUTHOR

Gergely Nagy, algernon@bonehunter.rulez.org

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

Back to Top


SEE ALSO

Babble, Babble::Processors

Back to Top

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