From 86b263b82b0ffdfeda73c6f585e3abc7f836c5b8 Mon Sep 17 00:00:00 2001 From: Alessandro Jean Date: Tue, 21 Jan 2020 18:47:14 -0300 Subject: [PATCH] Fix MangasProject token error. (#2109) Fix MangasProject token error --- src/pt/mangasproject/build.gradle | 2 +- .../tachiyomi/extension/pt/mangasproject/MangasProject.kt | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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) ?: ""