Răsfoiți Sursa

Respect the "skip" flag

Zachary Kotlarek 13 ani în urmă
părinte
comite
acb6e1a53c
1 a modificat fișierele cu 8 adăugiri și 1 ștergeri
  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
 	# Long wait between series, to avoid TVDB bans
 	sleep(rand(20, 40));
 	sleep(rand(20, 40));
 
 
-	# Grab the TVDB season list
+	# Grab the season parameters
 	$flags = readFlags($series);
 	$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']);
 	$tvdb_seasons = getTVDBSeasons($flags['tvdb-id'], $flags['tvdb-lid']);
 
 
 	# We only care about "new" seasons -- don't force old seasons into the local tree
 	# We only care about "new" seasons -- don't force old seasons into the local tree