Closed RameshKumarGogoi closed 2 years ago
This feature is inexistent as the directory for the download chosen is the working directory of the project; practically giving the user control of their downloads all the time.
How do we change the working directory when the project is installed through pip?
Uhh, cd
. You basically use the project on your terminal's directory.
Sorry, my mistake. Actually I meant an option to set default download folder in config.yml. It can be done through the -d flag, but for example: If you always download to the same folder, then you can set path to the folder in config.yml then it will be downloaded to the specified folder irrespective of your terminal's directory.
A workaround for that right now would be to make an alias for animdl that will cd first and then run, but I agree it would be nice to have a way to define a default directory inside of the tool.
Example for bash shell:
alias animdl="cd /storage/emulated/0/Anime && animdl $@ && cd - >/dev/null"
Btw will add this when I get the time, just a little bit busy atm.
(I don't suggest opening PRs for this as this could be rather complex for anyone unfamiliar with the code structure.)
Added to config as download_directory
key as of 1.5.84
.
^title