bandcamp-dl
bandcamp-dl copied to clipboard
Exception when using --no-slugify
Describe the bug
Running with --no-slugify
throws an Exception
To Reproduce Command to reproduce the behavior: bandcamp-dl --no-slugify https://severoth.bandcamp.com/album/by-the-way-of-light
https://severoth.bandcamp.com/album/by-the-way-of-light
Expected behavior
Should not throw an Exception if running with --no-slugify
.
Logs Most if not always you will get some kind of output explaining the issue, post it:
Traceback (most recent call last):
File "/opt/homebrew/bin/bandcamp-dl", line 8, in <module>
sys.exit(main())
^^^^^^
File "/opt/homebrew/Cellar/bandcamp-dl/0.0.15_2/libexec/lib/python3.12/site-packages/bandcamp_dl/__main__.py", line 114, in main
bandcamp_downloader.start(album)
File "/opt/homebrew/Cellar/bandcamp-dl/0.0.15_2/libexec/lib/python3.12/site-packages/bandcamp_dl/bandcampdownloader.py", line 55, in start
self.download_album(album)
File "/opt/homebrew/Cellar/bandcamp-dl/0.0.15_2/libexec/lib/python3.12/site-packages/bandcamp_dl/bandcampdownloader.py", line 142, in download_album
filepath = self.template_to_path(track_meta, self.config['--ascii-only'], self.config['--ok-chars'],
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/bandcamp-dl/0.0.15_2/libexec/lib/python3.12/site-packages/bandcamp_dl/bandcampdownloader.py", line 77, in template_to_path
path = path.replace("%{trackartist}", track['artist'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: replace() argument 2 must be str, not None
If possible after running the command with the --debug option.
Desktop (please complete the following information):
- OS: macOS
- Version 14.4.1 (23E224)
- Python Version 3.12.3
Additional context Add any other context about the problem here.