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

Doesn't work with Viz Media titles. #39

Closed
mslmn opened this issue Dec 30, 2022 · 2 comments
Closed

Doesn't work with Viz Media titles. #39

mslmn opened this issue Dec 30, 2022 · 2 comments
Labels
retired Not relevant (CmX API retired)

Comments

@mslmn
Copy link

mslmn commented Dec 30, 2022

Have tried this with multiple Viz Media titles and it works with none of them. I get this error.

File "/opt/homebrew/lib/python3.10/site-packages/pyzipper/zipfile.py", line 2106, in extractall
self._extract_member(zipinfo, path, pwd)
File "/opt/homebrew/lib/python3.10/site-packages/pyzipper/zipfile.py", line 2159, in _extract_member
with self.open(member, pwd=pwd) as source,
File "/opt/homebrew/lib/python3.10/site-packages/pyzipper/zipfile.py", line 2013, in open
return self._open_to_read(mode, zinfo, pwd)
File "/opt/homebrew/lib/python3.10/site-packages/pyzipper/zipfile.py", line 2024, in _open_to_read
raise e
File "/opt/homebrew/lib/python3.10/site-packages/pyzipper/zipfile.py", line 2021, in _open_to_read
return self.zipextfile_cls(zef_file, mode, zinfo, True, pwd)
File "/opt/homebrew/lib/python3.10/site-packages/pyzipper/zipfile.py", line 1203, in init
self.read_init()
File "/opt/homebrew/lib/python3.10/site-packages/pyzipper/zipfile.py", line 1218, in read_init
self._decrypter = self.get_decrypter()
File "/opt/homebrew/lib/python3.10/site-packages/pyzipper/zipfile.py", line 1306, in get_decrypter
decrypter = self._decrypter_cls(
File "/opt/homebrew/lib/python3.10/site-packages/pyzipper/zipfile_aes.py", line 61, in init
raise RuntimeError("Bad password for file %r" % zinfo.filename)
RuntimeError: Bad password for file 'COMIXOLOGY_BOOK_ENCRYPTED_HD_0001.jpg

@OverPT
Copy link

OverPT commented Jan 4, 2023

The same is happening to me. Is there any more info about this issue?

@Zaphain
Copy link

Zaphain commented Jan 7, 2023

Have tried this with multiple Viz Media titles and it works with none of them. I get this error...

The same is happening to me. Is there any more info about this issue?

Inside of comix.py, comment out the highlighted lines in the picture here:
pubidchange

The script should run fine after that.

Specifically for Viz Media, the publisher id is 17, however the code is changing it to 4, which is wrong in this case. If I had to guess, there is a publisher whose stated id is 17, when it's actually 4, but I don't know who it would be. The takeaway seems to be that there are overlapping ids.

If you want to find out what the stated publisher id of a comic is, insert:
print(self.publisher_id)
before the if statements that change the id. this will let you know when you run it what the id is. You can then look at the other if statements and see if one of them is relevant to the id and needs commented out. I've only come across this issue with viz so far, however, so I can't really test this on anything else.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
retired Not relevant (CmX API retired)
Projects
None yet
Development

No branches or pull requests

4 participants