Augmenter: move processing from test program into module
[nonametv.git] / test / augment.pl
blob84df339d1127f1465113699f6d82d3816a2e920d
1 #!/usr/bin/perl
3 use strict;
4 use warnings;
6 use FindBin;
7 use lib "$FindBin::Bin/../lib";
9 use DateTime;
10 use Encode;
12 use NonameTV::Augmenter;
13 use NonameTV::Factory qw/CreateDataStore/;
15 my $ds = CreateDataStore( );
17 my $dt = DateTime->now( time_zone => 'UTC' );
18 $dt->add( days => 7 );
20 my $batchid = 'neo.zdf.de_' . $dt->week_year() . '-' . $dt->week();
21 printf( "augmenting %s...\n", $batchid );
23 my $augmenter = NonameTV::Augmenter->new( $ds );
25 $augmenter->AugmentBatch( $batchid );