dteviot / WebToEpub

A simple Chrome (and Firefox) Extension that converts Web Novels (and other web pages) into an EPUB.
Other
740 stars 140 forks source link

Doesn’t grab covers on Webnovel.com #1272

Open UnknownSora opened 8 months ago

UnknownSora commented 8 months ago

When downloading, and once complete, you get an error message saying

“ Error: Fetch of image 'https://book-pic.webnovel.com/bookcover/24312285405501905?imageMogr2/thumbnail/600&imageId=1694333438508' for page 'https://www.webnovel.com/book/i-am-kurt-von-ritzburg_24312285405501905/chapter-1.-i-am-a-low-grade-villain_73629715629404736' failed with network error 403. This is an intermittent error. If you retry in a few minutes, it may succeed. promptUserForRetry@chrome-extension://akiljllkbielkidmammnifcnibaigelm/js/HttpClient.js:55:28”

It doesn’t work even when tried multiple times like the error message suggested, however, pasting the link in a browser does work to bring it up to download

dteviot commented 8 months ago

@UnknownSora

403 is a permissions thing. There's probably a subtle difference between how the interactive browser is fetching the image and the call WebToEpub is making. You can work around by either setting "Skip chapters that return HTTP 404 error" or "Skip Images" in Advanced Options.

UnknownSora commented 8 months ago

Yeah, it’s not a big deal, just thought I’d let you know

dteviot commented 8 months ago

Actually, I just tried it, and didn't have a problem. The cover image had no problem

Are you running in mobile mode?

UnknownSora commented 8 months ago

I tried yesterday on pc, it did the same, I could see the thumbnail but when I pressed the download button it’d bring up two alerts, and on pc it would have the error once complete and it finished packing the epub

UnknownSora commented 8 months ago

Right now it probably is since I’m on mobile, but unless that’s the default, I shouldn’t have it on pc? How do you check if it’s mobile mode?

dteviot commented 8 months ago

@UnknownSora https://www.browserstack.com/guide/view-mobile-version-of-website-on-chrome

UnknownSora commented 8 months ago

Thanks, I’ll check again tomorrow since it’s fairly late for me, have a good day/night <3

UnknownSora commented 7 months ago

Sorry for the late response here, lmao my message from earlier couldn’t send, my internet went out right after I sent the message in the other thread I made haha

Anyways, so I checked before my internet went out, it was 100% not on the mobile site.

dteviot commented 7 months ago

@UnknownSora

OK, so if you:

  1. Go to https://www.webnovel.com/book/i-am-kurt-von-ritzburg_24312285405501905,

  2. Click on "Table of Contents" on the page so that the page shows the list of chapters

  3. Open "WebToEpub"

  4. Does the cover image appear on top right corner of WebToEpub?

  5. If you try making an epub with just chapter 1 and 2, does WebToEpub behave?

  6. Have you set "Add Page with Chapters to Chapters List" on Advanced Options? (If you have, please turn it off.)

UnknownSora commented 7 months ago

Sorry again for the late response

(4) The image does appear, yes (5) Beyond the ‘WARNING: Site 'book-pic.webnovel.com' has sent an Access Denied (403) error. You may need to logon or satisy a CAPTCHA before WebToEpub can continue.‘ It downloads fine, yes (6) I did, removing it has made it less annoying for the error with the chapter list, Thank you

dteviot commented 7 months ago

@UnknownSora Going to close this as seems to work if you get the right settings in WebToEpub.

UnknownSora commented 7 months ago

What do you mean? What settings? How do you get it to work?

UnknownSora commented 7 months ago

When I said it downloads fine, I mean the epub without the image

dteviot commented 7 months ago

@UnknownSora

OK, at this point I'm probably going to need a HAR file https://www.youtube.com/watch?v=m98WFEXbhIs to figure out what's going on.

Let's try this:

  1. Figure out minimum set of chapters needed to trigger error.
  2. Go to relevant ToC page. (Tell me URL of this page)
  3. Open WebToEpub
  4. Start logging a HAR file for WebToEpub
  5. Create minimal Epub (with error)
  6. Save HAR file
  7. Zip and attach the HAR file.