diff --git a/src/pt/mangasproject/build.gradle b/src/pt/mangasproject/build.gradle index f4e120d32..f0ab7b44a 100644 --- a/src/pt/mangasproject/build.gradle +++ b/src/pt/mangasproject/build.gradle @@ -5,7 +5,7 @@ ext { appName = 'Tachiyomi: mangásPROJECT' pkgNameSuffix = 'pt.mangasproject' extClass = '.MangasProjectFactory' - extVersionCode = 5 + extVersionCode = 6 libVersion = '1.2' } diff --git a/src/pt/mangasproject/src/eu/kanade/tachiyomi/extension/pt/mangasproject/MangasProject.kt b/src/pt/mangasproject/src/eu/kanade/tachiyomi/extension/pt/mangasproject/MangasProject.kt index c257ac291..e13ce5223 100644 --- a/src/pt/mangasproject/src/eu/kanade/tachiyomi/extension/pt/mangasproject/MangasProject.kt +++ b/src/pt/mangasproject/src/eu/kanade/tachiyomi/extension/pt/mangasproject/MangasProject.kt @@ -26,7 +26,7 @@ abstract class MangasProject(override val name: String, override val supportsLatest = true - private val correctClient = if (name == "MangaLivre") network.cloudflareClient else network.client + private val correctClient = network.cloudflareClient // Sometimes the site is slow. override val client = correctClient.newBuilder() @@ -273,7 +273,7 @@ abstract class MangasProject(override val name: String, return result val document = result.asJsoup() - val readerSrc = document.select("script[src*=\"reader.min.js\"]") + val readerSrc = document.select("script[src*=\"reader.\"]") ?.attr("src") ?: "" val token = TOKEN_REGEX.find(readerSrc)?.groupValues?.get(1) ?: ""