Hentai cafe url fix (#5233)
* Remove suffixed <br /> for some parsed URLs * Bump version code
This commit is contained in:
parent
209db287a3
commit
b8ef369928
|
@ -5,7 +5,7 @@ ext {
|
||||||
extName = 'FoolSlide (multiple sources)'
|
extName = 'FoolSlide (multiple sources)'
|
||||||
pkgNameSuffix = 'all.foolslide'
|
pkgNameSuffix = 'all.foolslide'
|
||||||
extClass = '.FoolSlideFactory'
|
extClass = '.FoolSlideFactory'
|
||||||
extVersionCode = 55
|
extVersionCode = 56
|
||||||
libVersion = '1.2'
|
libVersion = '1.2'
|
||||||
containsNsfw = true
|
containsNsfw = true
|
||||||
}
|
}
|
||||||
|
|
|
@ -63,7 +63,9 @@ class HentaiCafe : FoolSlide("Hentai Cafe", "https://hentai.cafe", "en", "/manga
|
||||||
// Example: https://hentai.cafe/aiya-youngest-daughters-circumstances/
|
// Example: https://hentai.cafe/aiya-youngest-daughters-circumstances/
|
||||||
override fun chapterListParse(response: Response) = listOf(
|
override fun chapterListParse(response: Response) = listOf(
|
||||||
SChapter.create().apply {
|
SChapter.create().apply {
|
||||||
setUrlWithoutDomain(response.asJsoup().select("[title=Read]").attr("href"))
|
// Some URLs wrongly end with "<br />\n" and need to be removed
|
||||||
|
// Example: https://hentai.cafe/hc.fyi/12106
|
||||||
|
setUrlWithoutDomain(response.asJsoup().select("[title=Read]").attr("href").replace("<br />\\s*".toRegex(), ""))
|
||||||
name = "Chapter"
|
name = "Chapter"
|
||||||
chapter_number = 1f
|
chapter_number = 1f
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue