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: 'encrypted_password' #67

Closed valez72 closed 10 months ago

valez72 commented 10 months ago

During fetching library step on pearson+ there is error KeyError: 'encrypted_password' and program quits

During fetching library step on Zanichelli there is error TypeError: 'bool' object is not subscriptable and program quits

FelixFrog commented 10 months ago

Does the latest commit 9ed4f24 fix the Zanichelli issue?

mustafa-ad commented 10 months ago

Does the latest commit 9ed4f24 fix the Zanichelli issue?

I just tried it, it gives the same error with the latest commit:

Traceback (most recent call last): File "/home/user/Downloads/Compressed/pdfgrabber-master/main.py", line 271, in <module> main() File "/home/user/Downloads/Compressed/pdfgrabber-master/main.py", line 253, in main downloadbook() File "/home/user/Downloads/Compressed/pdfgrabber-master/main.py", line 119, in downloadbook books = utils.library(service, token) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/user/Downloads/Compressed/pdfgrabber-master/utils.py", line 99, in library return service.library(token) ^^^^^^^^^^^^^^^^^^^^^^ File "/home/user/Downloads/Compressed/pdfgrabber-master/services/prs.py", line 220, in library books[str(i["book_id"])] = {"title": i["book_title"], "cover": i["cover_image_url"], "isbn": i["isbn"], "type": i["product_model"], "prodid": i["product_id"], "author": i["author"], "pwd": i["encrypted_password"], "url": i["downloadUrl"]} ~^^^^^^^^^^^^^^^^^^^^^^ KeyError: 'encrypted_password'