Index: Validate External Links/Development/print_agent.php
===================================================================
--- Validate External Links/Development/print_agent.php	(revision 1150)
+++ 	(revision )
@@ -1,3 +1,0 @@
-<?php
-echo $_SERVER['HTTP_USER_AGENT'];
-?>
Index: Validate External Links/Development/print_user_agent.php
===================================================================
--- Validate External Links/Development/print_user_agent.php	(revision 1157)
+++ Validate External Links/Development/print_user_agent.php	(revision 1157)
@@ -0,0 +1,3 @@
+<?php
+echo $_SERVER['HTTP_USER_AGENT'];
+?>
Index: Validate External Links/validate_external_links.command
===================================================================
--- Validate External Links/validate_external_links.command	(revision 1150)
+++ Validate External Links/validate_external_links.command	(revision 1157)
@@ -22,6 +22,6 @@
 #bash "$VALEXTLINKS" --links "$LINKS_ONLINE" --exceptions "$EXCEPT_ONLINE" --output "$REPORT_DIR" --record-ok-links --suggest-snapshots-ng --end-url 70
 
-# Run with start/end URLs, record OK codes, and don't upload
-#bash "$VALEXTLINKS" --links "$LINKS_ONLINE" --exceptions "$EXCEPT_ONLINE" --output "$REPORT_DIR" --record-ok-links --suggest-snapshots-ng --start-url 2588 --end-url 2594
+# Run with start/end URLs, record OK codes, suggest OK snapshots, and don't upload
+#bash "$VALEXTLINKS" --links "$LINKS_ONLINE" --exceptions "$EXCEPT_ONLINE" --output "$REPORT_DIR" --record-ok-links --suggest-snapshots-ng --suggest-snapshots-ok --start-url 2836 --end-url 3300
 
 # Run with local extlinks and exceptions, start/end URLs, record OK codes, and don't upload
Index: Validate External Links/validate_external_links.sh
===================================================================
--- Validate External Links/validate_external_links.sh	(revision 1150)
+++ Validate External Links/validate_external_links.sh	(revision 1157)
@@ -87,5 +87,5 @@
 
 # These are parallel arrays giving the prefixes that can be used in place of normal external links to
-# some wikis and other sites
+# some wikis and other sites; based on https://wiki.oni2.net/Special:Interwiki
 declare -a INTERWIKI_PREFIXES=(commons metawikimedia mw wikibooks wikidata wikimedia wikinews wikiquote wikisource wikispecies wikiversity wikivoyage wikt wp)
 declare -a INTERWIKI_DOMAINS=(commons.wikimedia.org meta.wikimedia.org mediawiki.org wikibooks.org wikidata.org wikimediafoundation.org wikinews.org wikiquote.org wikisource.org species.wikimedia.org wikiversity.org wikivoyage.org wiktionary.org wikipedia.org)
@@ -234,5 +234,5 @@
       --end-url )              URL_LIMIT=$2;                       shift 2;;
       --upload )               UPLOAD_INFO=$2;                     shift 2;;
-      * )                      echo "Invalid argument $1 detected. Aborting."; exit 1;;
+      * )                      echo "Invalid argument '$1' detected. Aborting."; exit 1;;
   esac
 done
@@ -960,9 +960,10 @@
 
             # If this is a YouTube link, we have to look at the actual page source to know if the video
-            # is good or not
+            # is good or not; override the link's info if it's actually NG
             if [[ $URL == *www.youtube.com* ]]; then
                PAGE_TEXT=$(curl --silent --insecure --user-agent '$AGENT' --max-time $TIMEOUT $URL | grep "\"simpleText\":\"Video unavailable\"")
                if [ ! -z "$PAGE_TEXT" ]; then
                   STATUS="NG"
+                  CURL_RESULT=404
                   let OK_LINKS-=1
                   let NG_LINKS+=1
