Parcourir la source

Whine less about G&S YTIDs

Zachary Kotlarek il y a 10 ans
Parent
commit
6740627616
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      yt/critrole.pl

+ 1 - 1
yt/critrole.pl

@@ -111,7 +111,7 @@ my %ytids = ();
 		}
 		if ($response->decoded_content() =~ /data-ytid=\"([^\"]+)\"/) {
 			$ytids{$1} = $url;
-		} else {
+		} elsif ($DEBUG > 0) {
 			print STDERR 'No YTID found on: ' .$url . "\n";
 			if ($DEBUG > 1) {
 				print STDERR "\tPage content:\n" . $response->decoded_content() . "\n\n";