소스 검색

Provide an option to fully ignore some folders

Zachary Kotlarek 11 년 전
부모
커밋
3ffaca6bd8
1개의 변경된 파일과 8개의 추가작업 그리고 0개의 파일을 삭제
  1. 8 0
      rss.pl

+ 8 - 0
rss.pl

@@ -34,6 +34,14 @@ my %have     = ();
 my @need     = ();
 my $hs       = HTML::Strip->new();
 
+# Skip if there is a season_done file
+if (-e $OUT_DIR . '/season_done') {
+	if ($DEBUG) {
+		print STDERR 'Podcast disabled: ' . $SERIES . "\n";
+	}
+	exit(0);
+}
+
 # Fetch and analyize the feed
 my $feed = undef();
 {