You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TypeError: slugify() got an unexpected keyword argument 'ok'
TypeError: slugify() got an unexpected keyword argument 'only_ascii'
Checking the slugify source code I indeed don't see those as possible arguments.
To Reproduce
Command to reproduce the behavior: bandcamp-dl https://virtualmage.bandcamp.com/album/strange-landscape-ep
Expected behavior
Not crash 😂
Logs
Traceback (most recent call last):
File "/bin/bandcamp-dl", line 8, in <module>
sys.exit(main())
^^^^^^
File "/usr/lib/python3.12/site-packages/bandcamp_dl/__main__.py", line 132, in main
bandcamp_downloader.start(album)
File "/usr/lib/python3.12/site-packages/bandcamp_dl/bandcampdownloader.py", line 52, in start
self.download_album(album)
File "/usr/lib/python3.12/site-packages/bandcamp_dl/bandcampdownloader.py", line 151, in download_album
filepath = self.template_to_path(track_meta, self.config.ascii_only,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/bandcamp_dl/bandcampdownloader.py", line 91, in template_to_path
self.logger.debug(f'Track artist is None, replacing with {slugify_preset(track["albumartist"])}')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/bandcamp_dl/bandcampdownloader.py", line 71, in slugify_preset
slugged = slugify.slugify(content, ok=ok_chars, only_ascii=ascii_only,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: slugify() got an unexpected keyword argument 'ok'
Desktop (please complete the following information):
OS: Arch Linux
Version: latest git commit (v0.0.16.r0.gcdf24c0)
Python Version: 3.12.5
slugify version: 8.0.4
Known fix
Pass --no-slugify and download works.
The text was updated successfully, but these errors were encountered:
Update: Not happening for me under the current codebase, likely due to you somehow ending up with slugify and not unicode-slugify (which is specified in the pyproject.toml as well as pulled in by the build script on the AUR)
Describe the bug
The slugify dependency throws.
TypeError: slugify() got an unexpected keyword argument 'ok'
TypeError: slugify() got an unexpected keyword argument 'only_ascii'
Checking the slugify source code I indeed don't see those as possible arguments.
To Reproduce
Command to reproduce the behavior:
bandcamp-dl https://virtualmage.bandcamp.com/album/strange-landscape-ep
Expected behavior
Not crash 😂
Logs
Desktop (please complete the following information):
Known fix
Pass
--no-slugify
and download works.The text was updated successfully, but these errors were encountered: