Revision history for Perl extension WWW::Offliberty.
+1.000006 2017-08-18T18:00+08:00
+ - Change test video from Youtube to Vimeo as Offliberty's Youtube
+ support is broken
+
1.000005 2017-05-20T13:31+01:00
- Change test video *again* to one that's unlikely to be deleted
-WWW-Offliberty version 1.000004
+WWW-Offliberty version 1.000006
===============================
Offliberty is a service that takes a URL to some media (for example a
use strict;
use warnings;
use parent qw/Exporter/;
-our $VERSION = '1.000005';
+our $VERSION = '1.000006';
our @EXPORT_OK = qw/off/;
our $OFF_URL = 'http://offliberty.com/off03.php';
use WWW::Offliberty qw/off/;
my @results;
-@results = off "https://youtube.com/watch?v=dQw4w9WgXcQ";
-cmp_ok @results, '>=', 1, 'youtube';
+@results = off 'https://vimeo.com/45196609';
+cmp_ok @results, '>=', 1, 'vimeo';
-@results = off "https://youtube.com/watch?v=dQw4w9WgXcQ", video_file => 1;
-is @results, 2, 'youtube, video_file => 1';
+@results = off 'https://vimeo.com/45196609', video_file => 1;
+is @results, 2, 'vimeo, video_file => 1';
like $results[1], qr/\.mp4/, 'video URL contains ".mp4"';
unlike $results[0], qr/offwarning/, 'audio URL doesn\'t contain "offwarning"';