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:
eeddf24
)
videosite-dl: Add -o option
author
Ralf Ertzinger
<ralf@skytale.net>
Sat, 12 Apr 2014 16:23:04 +0000
(18:23 +0200)
committer
Ralf Ertzinger
<ralf@skytale.net>
Sat, 12 Apr 2014 16:23:04 +0000
(18:23 +0200)
videosite-dl.pl
patch
|
blob
|
history
diff --git
a/videosite-dl.pl
b/videosite-dl.pl
index
688efb3
..
b761e18
100755
(executable)
--- a/
videosite-dl.pl
+++ b/
videosite-dl.pl
@@
-19,6
+19,7
@@
my %config = (
'plugin.youtube.ADAPTIVE' => 1,
'plugin.filegetter.FILEPATTERN' => './%3$s.flv',
);
+my @options;
sub link_callback {
my $m = shift;
@@
-35,7
+36,8
@@
sub link_callback {
}
-GetOptions("i" => \$info, "d" => \$debug);
+GetOptions("i" => \$info, "d" => \$debug, "o=s" => \@options);
+%config = (%config, map { split(/=/, $_, 2) } @options);
push(@INC, dirname(realpath($0)));
load 'libvideosite';