Browse Source

Allow disabling per-channel

Zachary Kotlarek 10 years ago
parent
commit
bc68440d2b
1 changed files with 8 additions and 0 deletions
  1. 8 0
      yt/subscribe.pl

+ 8 - 0
yt/subscribe.pl

@@ -253,6 +253,14 @@ if ($SUBSCRIPTIONS) {
 	exit(0);
 	exit(0);
 }
 }
 
 
+# Disable all processing if the "skip" file exists
+if (-e 'skip') {
+	if ($DEBUG) {
+		warn("Exiting due to \"skip\" file\n");
+	}
+	exit 0;
+}
+
 # Disable channel fetching if the ID channel is "None"
 # Disable channel fetching if the ID channel is "None"
 if ($ID =~ /^\s*None\s*$/i) {
 if ($ID =~ /^\s*None\s*$/i) {
 	if ($DEBUG) {
 	if ($DEBUG) {