Closed butyraldehyde closed 9 months ago
When the download command is executed from the script by selecting the 2nd option from the menu, like you said, the script fails with ani-cli saying
Checking dependencies...
No results found!
Enable the downloader by uncommenting the following code in the ani-cli-batch script. It occurs in the 'case' function that checks for user input after adding the first anime to the download queue
2|execute)
#$command
#if [ $? == 0 ]; then
# addanime=false
#else
# echo "Download failed! Printing the download command."
# echo $command
# addanime=false
#fi
Comment the code that is currently implemented as a work around
clear
echo "The script's downloader is experiencing issues rn."
echo "Just copy and paste this command as a temporary alternative"
echo $command
#remove the next line if you uncomment the first 8 lines in this code block.
addanime=false
Note: This code is written right after the code mentioned in step 1, so you shouldn't have too much trouble finding it.
OS: Android 11 Shell: Bash 5.2.15 provided by the Termux environment
The download fails when executed from within the script but for some reason, the same download command works perfectly fine when executed by the user in the user's shell. So the script is set up to print the download command in case of any failure in the download process. The user can just copy this command and execute it him/herself to properly download all the anime in his/her download queue.
I've fixed the downloader. It is now working as intended
Describe the bug
The script doesn't download automatically, instead it just tells me to copy and paste a command.
To Reproduce
Run the script and select the option 2.Execute the Download Command.
Expected behavior
Should download what I have set.
Priority
Low
Desktop
OS: OpenSUSE Leap 15.4 Application and all dependencies installed via zypper
Additional context
I know you are saying it is having problems, what kind of issues were you seeing that prevented you from reliably using the auto-script? I'm a beginner at this as well, let's see if I can get some ideas down on paper here.