git://git.camperquake.de
/
videosite.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
225c1fd
)
FileGetter: Add support for connectors from metadata
author
Ralf Ertzinger
<ralf@skytale.net>
Sun, 4 Sep 2011 13:07:39 +0000
(15:07 +0200)
committer
Ralf Ertzinger
<ralf@skytale.net>
Sun, 4 Sep 2011 13:07:39 +0000
(15:07 +0200)
videosite/FileGetter.pm
patch
|
blob
|
history
diff --git
a/videosite/FileGetter.pm
b/videosite/FileGetter.pm
index
dab7ff3
..
f7c680e
100644
(file)
--- a/
videosite/FileGetter.pm
+++ b/
videosite/FileGetter.pm
@@
-30,7
+30,7
@@
sub get {
my $video = shift;
my $dlfile;
my $dirname;
- my $ua
= $self->ua()
;
+ my $ua;
my $res;
$dlfile = sprintf($self->_getval('FILEPATTERN'),
@@
-46,6
+46,11
@@
sub get {
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);