Explorar o código

Respect the "skip" flag

Zachary Kotlarek %!s(int64=13) %!d(string=hai) anos
pai
achega
acb6e1a53c
Modificáronse 1 ficheiros con 8 adicións e 1 borrados
  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