X-Git-Url: https://git.camperquake.de/gitweb.cgi?a=blobdiff_plain;f=videosite-dl.pl;h=4222f782dedff4cada23ddaa54b77a9169106232;hb=refs%2Fheads%2Fmaster;hp=46c8b49eb0718f7678f2bed562c1a220ceabebe9;hpb=a96de45e14a9779163091452496ac91b4c3079ea;p=videosite.git diff --git a/videosite-dl.pl b/videosite-dl.pl index 46c8b49..4222f78 100755 --- a/videosite-dl.pl +++ b/videosite-dl.pl @@ -18,6 +18,7 @@ my %config = ( 'plugin.youtube.QUALITY' => 'hd', 'plugin.filegetter.FILEPATTERN' => './%3$s.flv', ); +my @options; sub link_callback { my $m = shift; @@ -34,7 +35,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'; @@ -55,7 +57,7 @@ foreach (@ARGV) { printf("Handling %s...\n", $_); libvideosite::check_for_link({ message => $_, - ewpf => sub { print @_, "\n" }, + io => sub { print @_, "\n" }, window => "", }); }