Zachary Kotlarek 11 лет назад
Родитель
Сommit
96ba06a673
1 измененных файлов с 6 добавлено и 1 удалено
  1. 6 1
      yt/critrole.pl

+ 6 - 1
yt/critrole.pl

@@ -80,6 +80,11 @@ my %ytids = ();
 		}
 		}
 		if ($response->decoded_content() =~ /data-ytid=\"([^\"]+)\"/) {
 		if ($response->decoded_content() =~ /data-ytid=\"([^\"]+)\"/) {
 			$ytids{$1} = $url;
 			$ytids{$1} = $url;
+		} else {
+			print STDERR 'No YTID found on: ' .$url . "\n";
+			if ($DEBUG > 1) {
+				print STDERR "\tPage content:\n" . $response->decoded_content() . "\n\n";
+			}
 		}
 		}
 	}
 	}
 }
 }
@@ -114,4 +119,4 @@ if ($DEBUG) {
 }
 }
 
 
 # Cleanup
 # Cleanup
-exit(0);
+exit(0);