techwizrd / MangaFox-Download-Script

A script that lets you download mangas from mangafox.com
77 stars 27 forks source link

Comic book archives occasionally contain invalid images beause of HTTP 503 errors #17

Open techwizrd opened 11 years ago

techwizrd commented 11 years ago

Occasionally, Mangafox will return an HTTP 503 Service Unavailable error when the MangaFox-Download-Script is downloading chapter images. The MangaFox-Download-Script does not check for or report HTTP errors (including 404 errors), so comic book archives can accidentally contain the HTML file stating the HTTP error saved with an image extension.

techwizrd commented 11 years ago

Reproduced with "The World God Only Knows" chapter 1. It got a 503 error on more than one image.

Thatchantique commented 7 years ago

I've the same issue. How can I fix it?

techwizrd commented 7 years ago

@Thatchantique What I can do is add some code to add only files that have an HTTP 200 to the comic book archive.

vlenhart commented 7 years ago

Maybe like this: https://github.com/techwizrd/MangaFox-Download-Script/pull/27