+ikiwiki (3.20160506~ppa1) trusty; urgency=medium
+
+ * Untested backport to Ubuntu trusty.
+ * t/podcast.t: work around misidentification of Ogg Vorbis as Ogg Theora
+ by allowing either.
+
+ -- Simon McVittie <smcv@debian.org> Fri, 06 May 2016 09:16:15 +0100
+
ikiwiki (3.20160506) unstable; urgency=medium
[ Simon McVittie ]
my %media_types = (
'simplepost' => undef,
- 'piano.mp3' => 'audio/mpeg',
- 'scroll.3gp' => 'video/3gpp',
- 'walter.ogg' => 'audio/ogg',
+ 'piano.mp3' => qr{^audio/mpeg$}s,
+ 'scroll.3gp' => qr{^video/3gpp$}s,
+ 'walter.ogg' => qr{^(audio/ogg|video/x-theora\+ogg)$}s,
);
for my $format (qw(atom rss)) {
qq{$format $title no body text});
is($enclosure->url, $url,
qq{$format $title enclosure url});
- is($enclosure->type, $media_types{$title},
+ like($enclosure->type, $media_types{$title},
qq{$format $title enclosure type});
cmp_ok($enclosure->length, '>', 0,
qq{$format $title enclosure length});
isnt($enclosure, undef,
qq{$format $title enclosure});
my $filename = basename($enclosure->url);
- is($enclosure->type, $media_types{$filename},
+ like($enclosure->type, $media_types{$filename},
qq{$format $title enclosure type});
cmp_ok($enclosure->length, '>', 0,
qq{$format $title enclosure length});