diff --git a/src/en/elarcpage/build.gradle b/src/en/elarcpage/build.gradle index 47f715d41..8328b619f 100644 --- a/src/en/elarcpage/build.gradle +++ b/src/en/elarcpage/build.gradle @@ -3,7 +3,7 @@ ext { extClass = '.ElarcPage' themePkg = 'mangathemesia' baseUrl = 'https://elarctoons.com' - overrideVersionCode = 5 + overrideVersionCode = 6 isNsfw = false } diff --git a/src/en/elarcpage/src/eu/kanade/tachiyomi/extension/en/elarcpage/ElarcPage.kt b/src/en/elarcpage/src/eu/kanade/tachiyomi/extension/en/elarcpage/ElarcPage.kt index 24bc44682..4380c43aa 100644 --- a/src/en/elarcpage/src/eu/kanade/tachiyomi/extension/en/elarcpage/ElarcPage.kt +++ b/src/en/elarcpage/src/eu/kanade/tachiyomi/extension/en/elarcpage/ElarcPage.kt @@ -52,6 +52,12 @@ class ElarcPage : MangaThemesia( // Always update URL val response = chain.proceed(request) + + // Skip responses that do not start with "text/html" + if (response.header("content-type")?.startsWith("text/html") != true) { + return response + } + val document = Jsoup.parse( response.peekBody(Long.MAX_VALUE).string(), request.url.toString(),