Fixed parrallel loop
This commit is contained in:
parent
6427d9ca2e
commit
b2d68b2140
@ -88,7 +88,7 @@ class NHentai : BaseSite
|
||||
|
||||
// Loop over the range in parallel to make it faster
|
||||
auto range = new int[pageNumber];
|
||||
foreach(i; parallel(range))
|
||||
foreach(i, ref element; parallel(range))
|
||||
{
|
||||
// Craft the url with all parameters
|
||||
string extractedUrl = imageUrl ~ contentIDMatch ~ "/" ~ to!string(i) ~ ".jpg";
|
||||
|
Loading…
Reference in New Issue
Block a user