NAME

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

SYNOPSIS

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

my $babble = Babble->new
   (-processors => [ \&Babble::Processors::Extra::datecache ],
    datecache_file => "/var/cache/babble/datecache.db");

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.

METHODS

    datecache()

    This processor makes one able to approximate the submission date of items which lack such a field in the feed. It does so, by keeping a cache of items, and upon the first time it sees an undated item, it uses the current date for the missing field. Next time it sees the same undated item, it gets the date from the cache.

    For the cache to be persistent, it needs to be kept between runs, therefore it is saved to disc. One can - and has to - configurte the location of this item, by passing a datecache_file argument to the Babble's constructor.

    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.

AUTHOR

Gergely Nagy, algernon@bonehunter.rulez.org

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

SEE ALSO

Babble, Babble::Processors

1 POD Error

The following errors were encountered while parsing the POD:

Around line 50:

You can't have =items (as at line 56) unless the first thing after the =over is an =item