ccloli / E-Hentai-Downloader

Download E-Hentai archive as zip file
GNU General Public License v3.0
1.84k stars 138 forks source link

Blocked account keeps trying accessing the original image and gets error "Wrong MIME" #155

Closed ccloli closed 4 years ago

ccloli commented 4 years ago

When using a suspended account to download original images, the script may keep saying Failed! (Wrong MIME) and retry. The script should stop downloading them and notify the user, or ask to download resized images.

image

The unblocked time can be seen on E-Hentai Forums, though I think it's not needed to show the time to the user.

image

Here is the response data when accessing original images or user-related pages (like Favorites, My Home, My Uploads, My Tags, etc.) with a blocked account:

image

HTTP/1.1 200 OK
Date: Tue, 10 Mar 2020 17:34:11 GMT
Server: Apache
Vary: Accept-Encoding
Content-Encoding: gzip
Content-Length: 136
Content-Type: text/html; charset=UTF-8
X-Varnish: 278459542
Age: 0
Via: 1.1 varnish-v4
Accept-Ranges: bytes
Strict-Transport-Security: max-age=31536000; preload;

<p class="ip">[<a href="https://exhentai.org/">Front Page</a>]</p>This page is currently not available, as your account has been suspended.

The issue may be related to https://github.com/ccloli/E-Hentai-Downloader/issues/153#issuecomment-596055839 .

ccloli commented 4 years ago

Should be fixed in v1.31.7.