You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am reopening this issue because the previous one was closed but the issue is still there.
Here is what i came up with to 'solve' the issue
constimg_dir="./downloaded";awaitclient.util.downloadIllust(url,img_dir,"original");// should be downloaded by nowletexit=false;letprev_hash="";letimages: string[]=[];while(true){letimages_stats=fs.readdirSync(img_dir);letcurr_hash="";images=[];for(constimage_statsofimages_stats){constfile=img_dir+"/"+image_stats;images.push(file);curr_hash+=awaitgetFileHash(file);}if(exit){break;}if(prev_hash!=curr_hash||!curr_hash.length){debug(`hash mismatch, waiting... (${prev_hash} || ${curr_hash})`);}exit=prev_hash==curr_hash&&curr_hash.length>0;prev_hash=curr_hash;awaitsleep(1000);}// by this point the images are downloaded, but the solution is mega-crap
as you can see, the hash changes which means that the files are still downloading, please don't close this issue blaming me, this is clearly a problem in the library
The text was updated successfully, but these errors were encountered:
I am reopening this issue because the previous one was closed but the issue is still there.
Here is what i came up with to 'solve' the issue
here is the output
as you can see, the hash changes which means that the files are still downloading, please don't close this issue blaming me, this is clearly a problem in the library
The text was updated successfully, but these errors were encountered: