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
Error
[cookies][warning] failed to decrypt cookie (AES-CBC) because UTF-8 decoding failed. Possibly the key is wrong?
[cookies][info] Extracted 0 cookies from brave (369 could not be decrypted)
[cookies][debug] cookie version breakdown: {'v10': 0, 'v11': 369, 'other': 0, 'unencrypted': 0}
Tested Workaround
I was able to make this change which fixed the issue.
In file ~/.local/lib/python3.10/site-packages/gallery_dl/cookies.py
change line 909 from return plaintext.decode()
to return plaintext[32:].decode()
The text was updated successfully, but these errors were encountered:
Problem
After upgrading Brave browser, the
--cookies-from-browser
option can no longer decrypt cookies.OS
linuxmint 5.15.0-126-generic #136-Ubuntu SMP Wed Nov 6 10:38:22 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
Browser
Brave Browser 131.1.73.91
Command
gallery-dl --cookies-from-browser brave:/home/user/.config/BraveSoftware/Brave-Browser/Default
Error
[cookies][warning] failed to decrypt cookie (AES-CBC) because UTF-8 decoding failed. Possibly the key is wrong?
[cookies][info] Extracted 0 cookies from brave (369 could not be decrypted)
[cookies][debug] cookie version breakdown: {'v10': 0, 'v11': 369, 'other': 0, 'unencrypted': 0}
yt-dlp fix
yt-dlp/yt-dlp@4613096
Tested Workaround
I was able to make this change which fixed the issue.
In file
~/.local/lib/python3.10/site-packages/gallery_dl/cookies.py
change line 909 from
return plaintext.decode()
to
return plaintext[32:].decode()
The text was updated successfully, but these errors were encountered: