justfoolingaround / animdl

A highly efficient, fast, powerful and light-weight anime downloader and streamer for your favorite anime.
GNU General Public License v3.0
1.33k stars 109 forks source link

Option to set default download folder in config.yml #147

Closed RameshKumarGogoi closed 2 years ago

RameshKumarGogoi commented 2 years ago

^title

justfoolingaround commented 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.

RameshKumarGogoi commented 2 years ago

How do we change the working directory when the project is installed through pip?

justfoolingaround commented 2 years ago

Uhh, cd. You basically use the project on your terminal's directory.

RameshKumarGogoi commented 2 years ago

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.

hunkyburrito commented 2 years ago

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"

justfoolingaround commented 2 years ago

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.)

justfoolingaround commented 2 years ago

Added to config as download_directory key as of 1.5.84.