From d93f0ba1b0c0abb710b7bd05ba3ba49d32790c60 Mon Sep 17 00:00:00 2001 From: Alessandro Jean Date: Wed, 30 Sep 2020 13:03:59 -0300 Subject: [PATCH] =?UTF-8?q?Fix=20thumbnails=20not=20loading=20at=20YesMang?= =?UTF-8?q?=C3=A1s.=20(#4472)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix thumbnails not loading at YesMangás --- src/pt/yesmangas/build.gradle | 2 +- .../eu/kanade/tachiyomi/extension/pt/yesmangas/YesMangas.kt | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/pt/yesmangas/build.gradle b/src/pt/yesmangas/build.gradle index 67f72e192..4a6e0ad90 100644 --- a/src/pt/yesmangas/build.gradle +++ b/src/pt/yesmangas/build.gradle @@ -5,7 +5,7 @@ ext { extName = 'YES Mangás' pkgNameSuffix = 'pt.yesmangas' extClass = '.YesMangas' - extVersionCode = 4 + extVersionCode = 5 libVersion = '1.2' } diff --git a/src/pt/yesmangas/src/eu/kanade/tachiyomi/extension/pt/yesmangas/YesMangas.kt b/src/pt/yesmangas/src/eu/kanade/tachiyomi/extension/pt/yesmangas/YesMangas.kt index 0bb131434..372447c37 100644 --- a/src/pt/yesmangas/src/eu/kanade/tachiyomi/extension/pt/yesmangas/YesMangas.kt +++ b/src/pt/yesmangas/src/eu/kanade/tachiyomi/extension/pt/yesmangas/YesMangas.kt @@ -119,7 +119,7 @@ class YesMangas : ParsedHttpSource() { private fun String.withoutLanguage(): String = replace(LANG_REGEX, "") - private fun String.toLargeUrl(): String = replace(IMAGE_REGEX, ".") + private fun String.toLargeUrl(): String = replace(IMAGE_REGEX, "_full.") private fun Elements.textWithoutLabel(): String = text()!!.substringAfter(":").trim() @@ -130,7 +130,8 @@ class YesMangas : ParsedHttpSource() { } companion object { - private const val USER_AGENT = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36" + private const val USER_AGENT = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) " + + "AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36" private val LANG_REGEX = "( )?\\((PT-)?BR\\)".toRegex() private val IMAGE_REGEX = "_(small|medium|xmedium|xlarge)\\.".toRegex()