iheanyi / bandcamp-dl

Simple python script to download Bandcamp albums
The Unlicense
941 stars 104 forks source link

Issue with config file options. #218

Open gryf opened 4 months ago

gryf commented 4 months ago

Describe the bug Run downloader, it will create config. Change the template, just to have it ignored.

To Reproduce Command to reproduce the behavior:

Expected behavior

Respected template from config file.

Desktop (please complete the following information):

Additional context This behavior is connected strictly how config file is treated and config object is built. In this line https://github.com/iheanyi/bandcamp-dl/blob/9fb741590a77190152d1c5edd7df930296153bf2/bandcamp_dl/utils/config.py#L65 precedence have commandline args, unless they are None/null.

Template is just an example. All the other options but the base-dir will also be ignored.