3 use warnings FATAL => 'all';
7 use Data::Perl::Collection::Set;
8 use Scalar::Util qw(weaken);
10 my $idiotbox = App::IdiotBox->new({
11 config => { template_dir => 'share/html' }
16 name => 'London Perl Workshop 2009',
17 }, 'App::IdiotBox::Bucket');
21 $bucket->{videos} = Data::Perl::Collection::Set->new(
24 { %$_, bucket => $bucket, details => '' },
25 'App::IdiotBox::Video'
30 { name => 'The M Word', slug => 'm-word', author => 'davorg' },
31 { name => 'Dreamcasting', slug => 'dream', author => 'mst' },
38 while (defined (my $chunk = $fh->getline)) {
44 my $bucket_result = $idiotbox->show_bucket($bucket);
46 my $html = slurp_html($bucket_result);
50 warn "\n\n------\n\n";
52 my $video_result = $idiotbox->show_video($vid{dream});
54 $html = slurp_html($video_result);