Skip to content

Commit

Permalink
Update ITV, site changed to a Beta ITVPlayer
Browse files Browse the repository at this point in the history
add missing dependency.
  • Loading branch information
njtaylor committed Nov 19, 2015
1 parent 794862b commit 0e52f55
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions Makefile.PL
Expand Up @@ -22,6 +22,7 @@ my %mm_vars = (
URI => 0,
'LWP::UserAgent' => 0,
'WWW::Mechanize' => 0,
'IO::Socket::SSL' => 0,
'LWP::Protocol::https' => 0,
'LWP::Protocol::socks' => 0,
'Module::Find' => 0,
Expand Down
5 changes: 4 additions & 1 deletion lib/FlashVideo/Site/Itv.pm
Expand Up @@ -6,7 +6,7 @@ use FlashVideo::Utils;
use HTML::Entities;
use Encode;

our $VERSION = '0.06';
our $VERSION = '0.07';
sub Version() { $VERSION;}

sub find_video {
Expand Down Expand Up @@ -53,6 +53,9 @@ EOF
}
else {
($productionid) = $browser->content =~ /\"productionId\":\"([^\"]+)\"/i;
if (! $productionid) {
($productionid) = $browser->content =~ / data-video-id\s*=\s*\"([^\"]+)\"/i;
}
debug "Production ID $productionid\n";
die "No id (filter) found in URL or production id\n" unless $productionid;
$browser->post("http://mercury.itv.com/PlaylistService.svc",
Expand Down

0 comments on commit 0e52f55

Please sign in to comment.