bandcamp-dl icon indicating copy to clipboard operation
bandcamp-dl copied to clipboard

Issue with config file options.

Open gryf opened this issue 3 months ago • 0 comments

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.

gryf avatar Mar 21 '24 20:03 gryf