소스 검색

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) {