Mana/newtoki: add referer (#1372)

* add referer

* remove superfluous headersbuilder
This commit is contained in:
Secozzi 2024-02-19 18:45:31 +00:00 committed by Draff
parent 9ef0b03211
commit 678c3de899
2 changed files with 4 additions and 1 deletions

View File

@ -1,7 +1,7 @@
ext {
extName = 'NewToki / ManaToki'
extClass = '.TokiFactory'
extVersionCode = 29
extVersionCode = 30
isNsfw = true
}

View File

@ -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 {