Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with W16H16 #2

Open
pmerlin opened this issue Feb 1, 2024 · 0 comments
Open

Issue with W16H16 #2

pmerlin opened this issue Feb 1, 2024 · 0 comments

Comments

@pmerlin
Copy link

pmerlin commented Feb 1, 2024

Hi,
thank you for this great tool.

using this code (W16H16 instead of W64H64)

files = api.get_category_files(
    GalleryCategory.RECOMMEND,
    dimension=GalleryDimension.W16H16,

I receive the following error:
Traceback (most recent call last):
File "pmr.py", line 25, in
pixel_bean = api.download(info)
File "/GitHub/apixoo/apixoo/init.py", line 203, in download
return PixelBeanDecoder.decode_stream(resp.raw)
File "/GitHub/apixoo/apixoo/pixel_bean_decoder.py", line 315, in decode_stream
return AnimSingleDecoder(fp).decode()
File "/GitHub/apixoo/apixoo/pixel_bean_decoder.py", line 102, in decode
decrypted_data = self._decrypt_aes(encrypted_data)
File "/GitHub/apixoo/apixoo/pixel_bean_decoder.py", line 36, in _decrypt_aes
return cipher.decrypt(data)
File "/usr/lib/python3/dist-packages/Crypto/Cipher/blockalgo.py", line 295, in decrypt
return self._cipher.decrypt(ciphertext)
TypeError: argument must be read-only bytes-like object, not bytearray

Do you have an idea on how to handle 16x16 ?
It is using AnimSingleDecoder class

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant