Closed Eddyall-1 closed 2 months ago
Hello 👋
From my understanding, there are two changes in this PR, right?
await new Promise(r => setTimeout(r, 1));
(looks like a 1ms sleep?) between each step of the image upload1 sounds good, but not sure I understand the second one? Why do you need this for it to work on unraid?
Exactly
I didn't try with only a single timeout at the end of the block and realised just now maybe the issue is that the script was completing while the lines in that block were executing, killing their process before they were done.
Adjusted the Danbooru.js script to work with a self-hosted instance on Unraid. Also adjusted the rating to work by making them output the first letter in lower case which seems to be the accepted input as of now.