athrowaway2021 / comix

Seamlessly download and de-drm comics and manga from Kindle in highest possible quality

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Doesn't work with Viz Media titles.

mslmn opened this issue · comments

commented

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

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

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.