Fixed parrallel loop

This commit is contained in:
Beepboop Belong the 3rd 2020-04-13 22:37:02 +02:00
parent 6427d9ca2e
commit b2d68b2140
Signed by: beepboopbelong
GPG Key ID: B873A12869A7BD29

View File

@ -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";