my $video = shift;
my $dlfile;
my $dirname;
- my $ua = $self->ua();
+ my $ua;
my $res;
$dlfile = sprintf($self->_getval('FILEPATTERN'),
return 0;
}
+ if (exists($video->{'CONNECTOR'})) {
+ $self->selectconn($video->{'CONNECTOR'});
+ }
+ $ua = $self->ua();
+
$self->debug('Going to download %s to %s', $video->{'DLURL'}, $dlfile);
$res = $ua->mirror($video->{'DLURL'}, $dlfile);