Closed Blackcatn13 closed 6 years ago
I tried that change but it did not seem to work.
It needs the change in the mirror also, if not the onError call never occurs.
This only fixes that the function nbLoaded
returns the correct number of loaded elements if an element has been load after an onErrorImage
call.
The onErrorImage
call is never called without the change in the mirror, so without the mirror change this commit has no effect.
Reviewed 1 of 1 files at r1. Review status: all files reviewed at latest revision, all discussions resolved.
Comments from Reviewable
Will the Mirrors PR also be merged?
Yeah, forgot that.
Just to clarify, this patch only causes the images that failed to load to bring up the "Try to reload" button, right? Example
The patch in the mirrors does that. (Only for the MangaFox mirror, that's the one I know has the 503 error call, for other mirrors returning anything different of 200, the same lines changed in the PR need to be changed in every mirror)
This patch fixes that when the button is pressed, the rest of the chapter never loads (if load pages is in order)
Fixes that after a call to the onErrorImage function and the load in order option is selected it will finish to load the chapter.
In order to trigger this onErrorImage call when a 503 error happens, it's needed a update to the mirrors that give the errors (AllMangasReader-dev/mirrors#29).
This change is![Reviewable](https://reviewable.io/review_button.svg)