From 0aad6922e47772d56df392fbe14a29f88b92dd80 Mon Sep 17 00:00:00 2001 From: Alessandro Jean Date: Wed, 11 Nov 2020 00:46:02 -0300 Subject: [PATCH] =?UTF-8?q?Update=20Mang=C3=A1Host=20url=20(#4842)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Update MangáHost url --- src/pt/mangahost/build.gradle | 2 +- .../eu/kanade/tachiyomi/extension/pt/mangahost/MangaHost.kt | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/pt/mangahost/build.gradle b/src/pt/mangahost/build.gradle index f127ba20f..4fcd47f07 100644 --- a/src/pt/mangahost/build.gradle +++ b/src/pt/mangahost/build.gradle @@ -5,7 +5,7 @@ ext { extName = 'MangaHost' pkgNameSuffix = 'pt.mangahost' extClass = '.MangaHost' - extVersionCode = 14 + extVersionCode = 15 libVersion = '1.2' } diff --git a/src/pt/mangahost/src/eu/kanade/tachiyomi/extension/pt/mangahost/MangaHost.kt b/src/pt/mangahost/src/eu/kanade/tachiyomi/extension/pt/mangahost/MangaHost.kt index 0c163234c..d520212c7 100644 --- a/src/pt/mangahost/src/eu/kanade/tachiyomi/extension/pt/mangahost/MangaHost.kt +++ b/src/pt/mangahost/src/eu/kanade/tachiyomi/extension/pt/mangahost/MangaHost.kt @@ -24,7 +24,7 @@ class MangaHost : ParsedHttpSource() { override val name = "Mangá Host" - override val baseUrl = "https://mangahost2.com" + override val baseUrl = "https://mangahosted.com" override val lang = "pt-BR" @@ -163,7 +163,8 @@ class MangaHost : ParsedHttpSource() { private fun Elements.textWithoutLabel(): String = text()!!.substringAfter(":").trim() companion object { - private const val USER_AGENT = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.102 Safari/537.36" + private const val USER_AGENT = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) " + + "AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.193 Safari/537.36" private val LANG_REGEX = "( )?\\((PT-)?BR\\)".toRegex() private val IMAGE_REGEX = "_(small|medium|xmedium)\\.".toRegex()