Fix/failing thumbnail requests with http 410 (#955)

* Refresh thumbnail url on 410 error

* Refresh thumbnail url on 301 error
This commit is contained in:
schroda
2024-06-03 02:33:25 +02:00
committed by GitHub
parent ff23f58a4f
commit c1fe2da636
@@ -293,6 +293,8 @@ object Manga {
val tryToRefreshUrl =
!refreshUrl &&
listOf(
HttpCode.GONE.status,
HttpCode.MOVED_PERMANENTLY.status,
HttpCode.NOT_FOUND.status,
523, // (Cloudflare) Origin Is Unreachable
522, // (Cloudflare) Connection timed out