FelixFrog / pdfgrabber

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

Keyerror in blk #81

Closed TheUnrealZaka closed 7 months ago

TheUnrealZaka commented 7 months ago

Traceback (most recent call last): File "/home/theunrealzaka/pdfgrabber/main.py", line 271, in main() File "/home/theunrealzaka/pdfgrabber/main.py", line 253, in main downloadbook() File "/home/theunrealzaka/pdfgrabber/main.py", line 119, in downloadbook books = utils.library(service, token) File "/home/theunrealzaka/pdfgrabber/utils.py", line 99, in library return service.library(token) File "/home/theunrealzaka/pdfgrabber/services/blk.py", line 17, in library return mcm.library(token, blinklearning_baseurl) File "/home/theunrealzaka/pdfgrabber/services/mcm.py", line 89, in library coursejson = json.load(userzip.open("coursePlayer/curso_jsonidcurso" + cid + ".htm")) File "/home/theunrealzaka/.pyenv/versions/3.10.7/lib/python3.10/zipfile.py", line 1514, in open zinfo = self.getinfo(name) File "/home/theunrealzaka/.pyenv/versions/3.10.7/lib/python3.10/zipfile.py", line 1441, in getinfo raise KeyError( KeyError: "There is no item named 'coursePlayer/curso_json_idcurso_3805042.htm' in the archive"

TheUnrealZaka commented 7 months ago

Fixed itself the error image