Update MangáHost url (#4842)

Update MangáHost url
This commit is contained in:
Alessandro Jean 2020-11-11 00:46:02 -03:00 committed by GitHub
parent 1e3fcf61e0
commit 0aad6922e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View File

@ -5,7 +5,7 @@ ext {
extName = 'MangaHost'
pkgNameSuffix = 'pt.mangahost'
extClass = '.MangaHost'
extVersionCode = 14
extVersionCode = 15
libVersion = '1.2'
}

View File

@ -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()