FelixFrog / pdfgrabber

Download PDF books from bSmart, Pearson, Oxford, and many more!
GNU Affero General Public License v3.0
114 stars 16 forks source link

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

Open mrtxmrtx opened 5 days ago

mrtxmrtx commented 5 days ago

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_jsonidcurso" + 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"