Youtube: Add support for adaptive video formats (split video/audio)
[videosite.git] / videosite-dl.pl
index 46c8b49..688efb3 100755 (executable)
@@ -16,6 +16,7 @@ my %config = (
     mode => 'download',
     getter => 'filegetter',
     'plugin.youtube.QUALITY' => 'hd',
+    'plugin.youtube.ADAPTIVE' => 1,
     'plugin.filegetter.FILEPATTERN' => './%3$s.flv',
 );
 
@@ -55,7 +56,7 @@ foreach (@ARGV) {
     printf("Handling %s...\n", $_);
     libvideosite::check_for_link({
         message => $_,
-        ewpf => sub { print @_, "\n" },
+        io => sub { print @_, "\n" },
         window => "",
     });
 }