Add window identifier to event structure
[videosite.git] / videosite-dl.pl
index 3a711f1..1225b92 100755 (executable)
@@ -23,10 +23,10 @@ sub link_callback {
         foreach (keys(%{$m})) {
             printf("%s: %s\n", $_, defined($m->{$_})?$m->{$_}:'(undef)');
         }
-        return 0;
+        return 1;
     } else {
         print("Downloading $m->{'TITLE'}\n");
-        return 1;
+        return 0;
     }
 }
 
@@ -58,5 +58,6 @@ foreach (@ARGV) {
     libvideosite::check_for_link({
         message => $_,
         ewpf => sub { print @_, "\n" },
+        window => "",
     });
 }