macearl / Wallhaven-Downloader

A simple download Script for Wallhaven.cc

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cat/rm issues.

oppsig opened this issue · comments

Wallpaper 101496 already downloaded!cat: download.txt: No such file or directory
cat: download.txt: No such file or directory
cat: download.txt: No such file or directory
rm: cannot remove ‘download.txt’: No such file or directory

Some wierd errors.
Running in parallell mode.
My download.txt is populated with all wallpapers downloaded, deleting it solves the errors for a while but then wallpapers get redownloaded with ".1" extention.

"My download.txt is populated with all wallpapers downloaded"

Do you mean the "downloaded.txt"? When running in parallel mode there are 2 Text Files "Download.txt" and "Downloaded.txt".

"Downloaded.txt" contains all Wallpaper numbers which were already downloaded. "Download.txt" contains all numbers which will be downloaded with wget in parallel.

Does the "Download.txt" get created at any point?

Yeah sorry, I was supposed to say "Downloaded.txt".
I just increased WPNUMBER= from 300 -> 400 and "Download.txt" indeed get created, and removed when new wallpapers are done downloading. I didn't get any new rm/cat errors on the last pages now. but I did on all pages before that where i guess most of the wallpapers were already gotten.

and the error still shows up?

Yeah for page 1 -15, not for pages 16-17 since i had increased the wpnumber.

When I rerun the script now I get errors on all pages. Guessing this is because all pages has already been downloaded previously.

My settings;
WPNUMBER=400
TYPE=standard
SORTING=favorites
ORDER=desc
RESOLUTION=1920x1200,2560x1600,3600x2250,3000x1875,3840x2400,2432x1520,5600x3500
RATIO=16x10
SORTING=favorites
ORDER=desc
QUERY=
USR=
PARALLEL=1

found the reason, expect an update in a few minutes ;)

edit: should work now

Yeah, it works fine now. Thanks :)