瀏覽代碼

Respect the "skip" flag

Zachary Kotlarek 13 年之前
父節點
當前提交
acb6e1a53c
共有 1 個文件被更改,包括 8 次插入 和 1 次删除
  1. 8 1
      web/addSeasons.php

+ 8 - 1
web/addSeasons.php

@@ -17,8 +17,15 @@ foreach ($all_series as $series => $seasons) {
 	# Long wait between series, to avoid TVDB bans
 	sleep(rand(20, 40));
 
-	# Grab the TVDB season list
+	# Grab the season parameters
 	$flags = readFlags($series);
+
+	# Respect the "skip" flag
+	if ($flags['skip']) {
+		next;
+	}
+
+	# Grab the TVDB season list
 	$tvdb_seasons = getTVDBSeasons($flags['tvdb-id'], $flags['tvdb-lid']);
 
 	# We only care about "new" seasons -- don't force old seasons into the local tree