X-Git-Url: https://git.camperquake.de/gitweb.cgi?p=videosite.git;a=blobdiff_plain;f=videosite-dl.pl;h=b761e182436e085e18e26f9c30967bb4afe37acc;hp=a907b84a49e6e5816322eefa7b83207b17470915;hb=cbfc87367cce587d41ce8848edd7c4e9350e0943;hpb=f1fdd9a708ce0020c9387cdf2263000ca3c189b2 diff --git a/videosite-dl.pl b/videosite-dl.pl index a907b84..b761e18 100755 --- a/videosite-dl.pl +++ b/videosite-dl.pl @@ -16,8 +16,10 @@ my %config = ( mode => 'download', getter => 'filegetter', 'plugin.youtube.QUALITY' => 'hd', + 'plugin.youtube.ADAPTIVE' => 1, 'plugin.filegetter.FILEPATTERN' => './%3$s.flv', ); +my @options; sub link_callback { my $m = shift; @@ -34,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';