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:
parent
61dfe5089c
commit
deb2ad109f
@ -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"
|
||||
}
|
||||
|
@ -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"),
|
||||
|
@ -5,7 +5,7 @@ ext {
|
||||
extName = 'LectorManga'
|
||||
pkgNameSuffix = 'es.lectormanga'
|
||||
extClass = '.LectorManga'
|
||||
extVersionCode = 18
|
||||
extVersionCode = 19
|
||||
libVersion = '1.2'
|
||||
}
|
||||
|
||||
|
@ -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")
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user