anime-dl / anime-downloader

A simple but powerful anime downloader and streamer.
The Unlicense
1.92k stars 218 forks source link

anime is not recognised in a bat file. #604

Closed ghost closed 3 years ago

ghost commented 3 years ago

Describe the bug

"'anime' is not recognized as an internal or external command, operable program or batch file" When i type anime dl in a batch file. It tells me that. It works on normal cmd tho. To reproduce

Install.bat

:::: Ignore this. Only removes the script from the cmd screen.
@echo off

:::: Path
cd %PATH%

::::Reads the settings.
call settings.bat

:::: Well this is the first choice. It lets you choose between Anime and Manga or just Exit.
:choice
echo - What do you want to download/do? -
echo - Type one of the numbers below to continue. -
echo - Note: If you want to choose which anime/manga to download please go to settings.bat -
echo               1. Anime
echo               2. Manga
echo               3. Exit
set /P c=Answer here!:
if /I "%c%" EQU "1" cls && goto :anime
if /I "%c%" EQU "2" cls && goto :manga
if /I "%c%" EQU "3" cls && goto :pause
goto :choice

:::: This is the second choice. It lets you choose between either shutting down the pc or just exiting the console by doing the pause command.
:choice2
echo - Do you want to shut down the computer? -
echo - Type one of the numbers below to continue. -
echo                 1. Yes
echo                 2. No
set /P c=Answer here!:
if /I "%c%" EQU "1" goto :shutdown
if /I "%c%" EQU "2" goto :choice3
goto :choice2

:::: This is the third choice. Giving you the choice of downloading something else.
:choice3
echo - Do you want to download something else? -
echo - Type one of the numbers below to continue. -
echo                 1. Yes
echo                 2. No
set /P c=Answer here!:
if /I "%c%" EQU "1" cls && goto :choice
if /I "%c%" EQU "2" goto :pause
goto :choice3

:::: Anime section. Downloads the anime using the parameters in the settings.
:anime
anime dl %ANIME% %QUALITY% %PROVIDER%
set /P c=This is only a small pause. Type "1" to proceed:
if /I "%c%" EQU "1" cls && goto :choice2

:::: Manga section. Downloades the manga using the url provided in the settings.
:manga
manga-py "%MANGA_URL%"
set /P c=This is only a small pause. Type "1" to proceed:
if /I "%c%" EQU "1" cls && goto :choice2

:::: This section shuts down the computer.
:shutdown
echo - Are you sure you want to shut down your computer? -
echo - Type one of the numbers below to continue. -
echo               1. Yes
echo               2. No
set /P c=Answer here!:
if /I "%c%" EQU "1" cls && echo Cya! && shutdown /s
if /I "%c%" EQU "2" goto :choice

:::: This section pauses it and lets you leave.
:pause
cls && echo Fun seeing you! <3 && pause

settings.bat

:::: Edit these values
:::: DON'T REMOVE/EDIT "-q" or "-p" UNLESS YOU DON'T WANT A SPECIFIC PROVIDER OR QUALITY. The default provider is twist.moe.
:::: Manga source i recommend is BATO.TO
:::: If you get this error "CUID#12 - Download aborted.". Then don't worry it is harmless.
:::: Worst thing it does is maybe decrease download speed a little bit.

:::: Download path:

set PATH=D:\Amine

:::: Anime:

set ANIME="Naruto Shippuden"
set PROVIDER=
set QUALITY=-q 1080p

:::: Manga:

set MANGA_URL=

:::: INFO

:::: PATH MUST BE SET SO YOU DON'T DOWNLOAD INTO SYSTEM32

:::: Current anime providers: 4anime, anitube, anime8, animebinge, gurminder, animedaisuki, animeflix, animeflv, 
:::: animefreak, animefree, animefrenzy, animekisa, animetake, animeonline360, animeout, animerush, animesimple, 
:::: animesuge, animevibe, animixplay, darkanime, dbanimes, erai-raws, egyanime, fastani, itsaturday, justdubs, 
:::: kickass, kissanimex, kisscartoon, 9anime, nyaa, putlockers, ryuanime, subsplease, twist.moe, tenshi.moe,
:::: vidstream, voiranime, vostfree
:::: Some sources may not work anymore. If it doesn't try a different source.

:::: More info send a direct message to H4rl#5307 on discord.
LOG ``` ```
ghost commented 3 years ago

It seems to occur only in this bat script

ghost commented 3 years ago

So any support?

ghost commented 3 years ago

Fixed it. %PATH% was conflicting with /P