Mana/newtoki: add referer (#1372)
* add referer * remove superfluous headersbuilder
This commit is contained in:
parent
9ef0b03211
commit
678c3de899
|
@ -1,7 +1,7 @@
|
||||||
ext {
|
ext {
|
||||||
extName = 'NewToki / ManaToki'
|
extName = 'NewToki / ManaToki'
|
||||||
extClass = '.TokiFactory'
|
extClass = '.TokiFactory'
|
||||||
extVersionCode = 29
|
extVersionCode = 30
|
||||||
isNsfw = true
|
isNsfw = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -48,6 +48,9 @@ abstract class NewToki(
|
||||||
.connectTimeout(10, TimeUnit.SECONDS) // fail fast
|
.connectTimeout(10, TimeUnit.SECONDS) // fail fast
|
||||||
.build()
|
.build()
|
||||||
|
|
||||||
|
override fun headersBuilder() = super.headersBuilder()
|
||||||
|
.add("Referer", "$baseUrl/")
|
||||||
|
|
||||||
override fun popularMangaSelector() = "div#webtoon-list > ul > li"
|
override fun popularMangaSelector() = "div#webtoon-list > ul > li"
|
||||||
|
|
||||||
override fun popularMangaFromElement(element: Element): SManga {
|
override fun popularMangaFromElement(element: Element): SManga {
|
||||||
|
|
Loading…
Reference in New Issue