fix quoting in AsyncWgetFileGetter again
[videosite.git] / videosite-dl.pl
index 688efb3..4222f78 100755 (executable)
@@ -16,9 +16,9 @@ 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;
@@ -35,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';