A redirection error from their host, though, interrupts the script, and returns an error.
Code: Select all
C:\Users\Vangelis\AppData\Roaming\npm\node_modules\interfacelift-downloader\lib\
downloader.js:41
filePath = path.join(downloadPath, fileName[0]);
^
TypeError: Cannot read property '0' of null
at EventEmitter.<anonymous> (C:\Users\Vangelis\AppData\Roaming\npm\node_modu
les\interfacelift-downloader\lib\downloader.js:41:50)
at EventEmitter.emit (events.js:95:17)
at IncomingMessage.<anonymous> (C:\Users\Vangelis\AppData\Roaming\npm\node_m
odules\interfacelift-downloader\lib\downloader.js:68:18)
at IncomingMessage.EventEmitter.emit (events.js:117:20)
at _stream_readable.js:920:16
at process._tickCallback (node.js:415:13)
I want to create a batch file to re-run the command infinitely overnight, and have it download all images.
I have tried the following .bat file (test2 directory exists)
Code: Select all
D:
D:\test2
:loop
interfacelift-downloader 1920x1080
goto loop
However, when the error pops up, it doesn't loop, but it exits.
My question is how can I infinitely re-run a command after it returns an error?