Open gryf opened 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:
bandcamp-dl <whatever bandcamp url>
sed -ie 's|\(--template":\) "%{artist}/%{album}/%{track} - %{title}"|\1 "%{track} - %{title}"|' ~/.config/bandcamp-dl.json
URL or List of URLs HERE
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.
base-dir
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>
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.