MapoMagpie / eh-view-enhance

Manga Viewer + Downloader, Focus on experience and low load on the site. Support: e-hentai.org | exhentai.org | pixiv.net | 18comic.vip | nhentai.net | hitomi.la | rule34.xxx | danbooru.donmai.us | gelbooru.com | twitter.com
MIT License
359 stars 12 forks source link

Loading/Downloading Raw images error #76

Closed Pamlau closed 3 months ago

Pamlau commented 4 months ago

Description: When loading/downloading any gallery with raw images, I get the error "[Error: expect image data, fetched wrong type: text/html; charset=utf-8]"

Browser: Opera GX version: LVL6 (core: 111.0.5168.99)

Log: Opera GX doesn't seem to have a log manager

image

image

MapoMagpie commented 4 months ago

Fetch the raw image(original image), you need to be logged in. Please check if you are logged into e-hentai.

I will make the error‘s description more accurate.

Pamlau commented 4 months ago

Fetch the raw image(original image), you need to be logged in. Please check if you are logged into e-hentai.

I will make the error‘s description more accurate.

I'm logged both on exhentai and e-hentai, both are giving the same error message, 1/10 of the images end up loading/downloading correctly but the rest give the same "[Error: expect image data, fetched wrong type]" message

MapoMagpie commented 4 months ago

I can't reproduce this. Can You press the middle mouse button on the thumbnail to open the source address and click the Download original xxx button to see if you can download the image.

Pamlau commented 4 months ago

I can't reproduce this. Can You press the middle mouse button on the thumbnail to open the source address and click the Download original xxx button to see if you can download the image.

Yes, I'm able to download normally through the normal original button. I open the gallery, I press the button to open the gallery through the viewer, I press the download button and it starts attempting to download all images but 90% of them end up with the same error, I'll try with a different browser other than Opera GX

MapoMagpie commented 3 months ago

I cannot reproduce the issue with error message Error: expect image data, fetched wrong type: text/html; charset=utf-8, but there is indeed an issue with loading the source images. This is due to some nodes in the "hath.network" being down. I have now fixed the problem of not being able to get new "hath.network" nodes. It might solve the issue you are encountering.

Pamlau commented 3 months ago

I cannot reproduce the issue with error message Error: expect image data, fetched wrong type: text/html; charset=utf-8, but there is indeed an issue with loading the source images. This is due to some nodes in the "hath.network" being down. I have now fixed the problem of not being able to get new "hath.network" nodes. It might solve the issue you are encountering.

On Opera GX:

image

image

Pamlau commented 3 months ago

On google chrome its like that:

image

image

MapoMagpie commented 3 months ago

Maybe the correct image data has been obtained, but strangely, the response data content-type is "text/html". I have tried to fix this.

Pamlau commented 3 months ago

Maybe the correct image data has been obtained, but strangely, the response data content-type is "text/html". I have tried to fix this.

The download is working now but its downloading a null file instead of the gallery

image

image

All files are 173 KB and unable to open, tested other galleries too, some images actually end up being downloaded correctly in the original state, but most files in the null 173 KB state

MapoMagpie commented 3 months ago

Could you upload one of the files? It seems that its data is not image data but HTML content.

Pamlau commented 3 months ago

Could you upload one of the files? It seems that its data is not image data but HTML content.

_001

MapoMagpie commented 3 months ago

grim_20240729_233009 Kaspersky blocked requests to "hath.network" from other browser extensions. "hath.network" is the content distribution network of "e-hentai."

Pamlau commented 3 months ago

hath.network

Kaspersky never blocked exhentai for me

I added the "hath.network" to Trusted URLs but still seems to not work, it keeps downloading 90% of the files as the 173 KB one

image

The file: 01

EDIT: I fully disabled karpersky and now the download is working perfectly, I'm trying to find out whats blocking the download so I don't need to have the anti virus disabled

MapoMagpie commented 3 months ago

Try add this:"*.hath.network" to Trusted URLs

Pamlau commented 3 months ago

Try add this:"*.hath.network" to Trusted URLs

Now its downloading 28 KB files with or without anti-virus xdd

image

image

Pamlau commented 3 months ago

UPDATE: Now all of sudden its working perfectly, with and without karpersky! Thanks you are the best <3

MapoMagpie commented 3 months ago

Okey