bandcamp-dl
bandcamp-dl copied to clipboard
Issue with config file options.
Describe the bug Run downloader, it will create config. Change the template, just to have it ignored.
To Reproduce Command to reproduce the behavior:
-
bandcamp-dl <whatever bandcamp url>
-
sed -ie 's|\(--template":\) "%{artist}/%{album}/%{track} - %{title}"|\1 "%{track} - %{title}"|' ~/.config/bandcamp-dl.json
-
bandcamp-dl <whatever bandcamp url>
URL or List of URLs HERE
Expected behavior
Respected template from config file.
Desktop (please complete the following information):
- OS: Linux
- Version 6.6.13
- Python Version 3.11.8
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.