diff --git a/src/es/lectortmo/build.gradle b/src/es/lectortmo/build.gradle index da77f8583..d6b2627ee 100644 --- a/src/es/lectortmo/build.gradle +++ b/src/es/lectortmo/build.gradle @@ -1,7 +1,7 @@ ext { extName = 'TuMangaOnline / LectorManga' extClass = '.LectorTmoFactory' - extVersionCode = 1 + extVersionCode = 2 isNsfw = true } diff --git a/src/es/lectortmo/src/eu/kanade/tachiyomi/extension/es/lectortmo/LectorTmo.kt b/src/es/lectortmo/src/eu/kanade/tachiyomi/extension/es/lectortmo/LectorTmo.kt index 81b0843ca..eab622162 100644 --- a/src/es/lectortmo/src/eu/kanade/tachiyomi/extension/es/lectortmo/LectorTmo.kt +++ b/src/es/lectortmo/src/eu/kanade/tachiyomi/extension/es/lectortmo/LectorTmo.kt @@ -57,13 +57,9 @@ abstract class LectorTmo( .build() protected open val imageCDNUrls = arrayOf( - "https://img1.followmanga.com", - "https://img1.biggestchef.com", - "https://img1.indalchef.com", - "https://img1.recipesandcook.com", - "https://img1.cyclingte.com", "https://img1.japanreader.com", "https://japanreader.com", + "https://imgtmo.com", ) private fun OkHttpClient.Builder.rateLimitImageCDNs(hosts: Array, permits: Int, period: Long): OkHttpClient.Builder { @@ -108,7 +104,7 @@ abstract class LectorTmo( .addInterceptor { chain -> val request = chain.request() val url = request.url - if (url.host.contains("japanreader.com")) { + if (url.fragment == "imagereq") { return@addInterceptor ignoreSslClient.newCall(request).execute() } chain.proceed(request) @@ -444,7 +440,7 @@ abstract class LectorTmo( } override fun imageRequest(page: Page): Request { - return GET(page.imageUrl!!, tmoHeaders) + return GET(page.imageUrl!! + "#imagereq", tmoHeaders) } override fun imageUrlParse(document: Document) = throw UnsupportedOperationException() diff --git a/src/es/lectortmo/src/eu/kanade/tachiyomi/extension/es/lectortmo/LectorTmoFactory.kt b/src/es/lectortmo/src/eu/kanade/tachiyomi/extension/es/lectortmo/LectorTmoFactory.kt index dacb72b9b..7ae82b35b 100644 --- a/src/es/lectortmo/src/eu/kanade/tachiyomi/extension/es/lectortmo/LectorTmoFactory.kt +++ b/src/es/lectortmo/src/eu/kanade/tachiyomi/extension/es/lectortmo/LectorTmoFactory.kt @@ -83,7 +83,7 @@ class LectorManga : LectorTmo("LectorManga", "https://lectormanga.com", "es", ra } override fun imageRequest(page: Page) = GET( - url = page.imageUrl!!, + url = page.imageUrl!! + "#imagereq", headers = headers.newBuilder() .set("Referer", page.url.substringBefore("news/")) .build(),