-
-
Notifications
You must be signed in to change notification settings - Fork 44
Open
Labels
upstream issueIt is a bug, but it is a bug with an upstream module and needs to be fixed there.It is a bug, but it is a bug with an upstream module and needs to be fixed there.
Description
It's not a big deal for me since I just launched firefox and logged in with that. Done. Just so you know, there might be an issue. The actual proplem I suppose is happening earlier at: ValueError: invalid padding byte
$ ./bandcamp-downloader.py -v --browser chrome -d ~/0-incoming-bandcamp/ my-bandcamp-user
Namespace(username='my-bandcamp-user', browser='chrome', cookies=None, directory='/home/jojo/0-incoming-bandcamp/', filename_format='{artist}/{artist} - {title}', format='mp3-320', parallel_downloads=5, force=False, wait_after_download=1, max_download_attempts=5, retry_wait=5, verbose=1)
Retrieving album links from user [jojotodos]'s collection.
Traceback (most recent call last):
File "/home/jojo/.pyenv/versions/bandcamp/lib/python3.10/site-packages/browser_cookie3/__init__.py", line 352, in _decrypt
decrypted += cipher.feed()
File "/home/jojo/.pyenv/versions/bandcamp/lib/python3.10/site-packages/pyaes/blockfeeder.py", line 169, in feed
result = self._final(self._buffer, self._padding)
File "/home/jojo/.pyenv/versions/bandcamp/lib/python3.10/site-packages/pyaes/blockfeeder.py", line 77, in _block_final_decrypt
return strip_PKCS7_padding(self.decrypt(data))
File "/home/jojo/.pyenv/versions/bandcamp/lib/python3.10/site-packages/pyaes/util.py", line 58, in strip_PKCS7_padding
raise ValueError("invalid padding byte")
ValueError: invalid padding byte
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/jojo/git/bandcamp-downloader/./bandcamp-downloader.py", line 336, in <module>
sys.exit(main())
File "/home/jojo/git/bandcamp-downloader/./bandcamp-downloader.py", line 149, in main
links = get_download_links_for_user(args.username)
File "/home/jojo/git/bandcamp-downloader/./bandcamp-downloader.py", line 189, in get_download_links_for_user
cookies = get_cookies()
File "/home/jojo/git/bandcamp-downloader/./bandcamp-downloader.py", line 331, in get_cookies
return func(domain_name = 'bandcamp.com')
File "/home/jojo/.pyenv/versions/bandcamp/lib/python3.10/site-packages/browser_cookie3/__init__.py", line 630, in chrome
return Chrome(cookie_file, domain_name, key_file).load()
File "/home/jojo/.pyenv/versions/bandcamp/lib/python3.10/site-packages/browser_cookie3/__init__.py", line 291, in load
value = self._decrypt(value, enc_value)
File "/home/jojo/.pyenv/versions/bandcamp/lib/python3.10/site-packages/browser_cookie3/__init__.py", line 354, in _decrypt
raise BrowserCookieError('Unable to get key for cookie decryption')
browser_cookie3.BrowserCookieError: Unable to get key for cookie decryption
Metadata
Metadata
Assignees
Labels
upstream issueIt is a bug, but it is a bug with an upstream module and needs to be fixed there.It is a bug, but it is a bug with an upstream module and needs to be fixed there.