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

KeyError: There is no item named...in the archive #114

Open
mrtxmrtx opened this issue Nov 18, 2024 · 0 comments
Open

KeyError: There is no item named...in the archive #114

mrtxmrtx opened this issue Nov 18, 2024 · 0 comments

Comments

@mrtxmrtx
Copy link

Hi there,

the tool worked great a few months ago, now I wanted to get the new books (Blinklearning), but I keep getting the output below.
Something I can do ?

Best mrtx

Choose a service [bsm/ees/hbs/mcm/myl/prs/dbk/olb/rfl/cmb/blk/hoe/pmb/cng/orc/snm]: blk
Do you have a token for Blinklearning? [y/n] (n): y
Paste here your token: 0[CENSORED]1
Traceback (most recent call last):
File "/home/user/pdfgrab/pdfgrabber/main.py", line 280, in
main()
File "/home/user/pdfgrab/pdfgrabber/main.py", line 261, in main
downloadbook()
File "/home/user/pdfgrab/pdfgrabber/main.py", line 127, in downloadbook
books = utils.library(service, token)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/user/pdfgrab/pdfgrabber/utils.py", line 111, in library
return service.library(token)
^^^^^^^^^^^^^^^^^^^^^^
File "/home/user/pdfgrab/pdfgrabber/services/blk.py", line 17, in library
return mcm.library(token, blinklearning_baseurl)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/user/pdfgrab/pdfgrabber/services/mcm.py", line 91, in library
coursejson = json.load(userzip.open("coursePlayer/curso_json_idcurso_" + cid + ".htm"))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/zipfile/init.py", line 1604, in open
zinfo = self.getinfo(name)
^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/zipfile/init.py", line 1532, in getinfo
raise KeyError(
KeyError: "There is no item named 'coursePlayer/curso_json_idcurso_3561958.htm' in the archive"

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