devnoname120 / google-play-book-downloader

Download and decrypt books purchased on Google Play Books without text reflowing
GNU Affero General Public License v3.0
60 stars 4 forks source link

Error when run zx google-play-book-downloader.mjs #5

Closed kingjt9595 closed 1 year ago

kingjt9595 commented 1 year ago

I tried a lot to solve this problem I installed Java again I reinstalled Python And I did all the steps

But I still get the error

image

KodywithaK commented 1 year ago

@kingjt9595 I was getting the same errors as you, until I tried this, so I believe it will work for you too:

I removed the 1st and 3rd arguments from the "copy as Node.js fetch", (i.e.)

fetch({URL}, {

&

,
  "body": null,
  "method": "GET"
});

leaving only

15: const FETCH_OPTIONS = {
16:     "headers": {
            *your info here*
        }
39: };

then I removed the first $ from

43: const book_dir = $`books/${BOOK_ID}`;

making it

43: const book_dir = `books/${BOOK_ID}`;

and manually created the "google-play-downloader-main\books\{BOOK_ID}".

After that, running the "zx google-play-book-downloader.mjs" worked perfectly!

devnoname120 commented 1 year ago

I will make this part more user-friendly in a future version. Until then you will need to be careful when you copy/paste the object.