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