瀏覽代碼

Allow disabling per-channel

Zachary Kotlarek 10 年之前
父節點
當前提交
bc68440d2b
共有 1 個文件被更改,包括 8 次插入 和 0 次删除
  1. 8 0
      yt/subscribe.pl

+ 8 - 0
yt/subscribe.pl

@@ -253,6 +253,14 @@ if ($SUBSCRIPTIONS) {
 	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"
 if ($ID =~ /^\s*None\s*$/i) {
 	if ($DEBUG) {