Adding headers back to LectorManga images and fixing ManhuaPlus again. (#8854)

* Update build.gradle

* Update LectorManga.kt

* Update ManhuaPlus.kt

* Update MadaraGenerator.kt
This commit is contained in:
Clouddark75 2021-08-26 07:15:15 -04:00 committed by GitHub
parent 61dfe5089c
commit deb2ad109f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 5 deletions

View File

@ -3,5 +3,5 @@ package eu.kanade.tachiyomi.extension.en.manhuaplus
import eu.kanade.tachiyomi.multisrc.madara.Madara
class ManhuaPlus : Madara("Manhua Plus", "https://manhuaplus.com", "en") {
override val pageListParseSelector = "div.page-break, li.blocks-gallery-item, .reading-content p img"
override val pageListParseSelector = "div.page-break, li.blocks-gallery-item, .reading-content p img, .read-container img"
}

View File

@ -248,7 +248,7 @@ class MadaraGenerator : ThemeSourceGenerator {
SingleLang("Mangceh", "https://mangceh.me", "id", isNsfw = true, overrideVersionCode = 2),
SingleLang("Manhua Dragon", "https://manhuadragon.com", "en"),
SingleLang("Manhua ES", "https://manhuaes.com", "en", overrideVersionCode = 4),
SingleLang("Manhua Plus", "https://manhuaplus.com", "en", overrideVersionCode = 3),
SingleLang("Manhua Plus", "https://manhuaplus.com", "en", overrideVersionCode = 4),
SingleLang("Manhua SY", "https://www.manhuasy.com", "en", overrideVersionCode = 1),
SingleLang("ManhuaBox", "https://manhuabox.net", "en", overrideVersionCode = 2),
SingleLang("ManhuaChill", "https://manhuachill.com", "en"),

View File

@ -5,7 +5,7 @@ ext {
extName = 'LectorManga'
pkgNameSuffix = 'es.lectormanga'
extClass = '.LectorManga'
extVersionCode = 18
extVersionCode = 19
libVersion = '1.2'
}

View File

@ -276,8 +276,8 @@ class LectorManga : ConfigurableSource, ParsedHttpSource() {
}
}
// Note: At this moment (13/07/2020) it's necessary to make the image request without headers to prevent 403.
override fun imageRequest(page: Page) = GET(page.imageUrl!!)
// Note: At this moment (26/08/2021) it's necessary to make the image request with headers to prevent 403.
override fun imageRequest(page: Page) = GET(page.imageUrl!!, headers)
override fun imageUrlParse(document: Document): String = document.select("img.viewer-image").attr("src")