75rx / ani-cli-batch

An ani-cli wrapper for queuing & batch downloading multiple different anime.
GNU General Public License v3.0
7 stars 2 forks source link

Script is not set to automatically download #2

Closed butyraldehyde closed 9 months ago

butyraldehyde commented 1 year ago

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.

75rx commented 1 year 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!

Steps to reproduce the issue

  1. 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
  2. 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.

  1. Run the script
  2. Search for an anime
  3. Execute the download command from within the script's menu

Device

OS: Android 11 Shell: Bash 5.2.15 provided by the Termux environment

Current workaround

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.

75rx commented 9 months ago

I've fixed the downloader. It is now working as intended