Update HentaiVNParser.kt

not sure, i hope it will works...
master
Draken 2 years ago committed by GitHub
parent ad7c953d29
commit 64666e42e8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -23,10 +23,10 @@ private const val SEARCH_PAGE_SIZE = 10
@MangaSourceParser("HENTAIVN", "HentaiVN", "vi", type = ContentType.HENTAI)
class HentaiVNParser(context: MangaLoaderContext) : MangaParser(context, MangaSource.HENTAIVN) {
override val configKeyDomain: ConfigKey.Domain = ConfigKey.Domain("hentaivn.red", "hentaivn.autos", "hentaivn.tv")
override val configKeyDomain: ConfigKey.Domain = ConfigKey.Domain("zhentaivn.cc", "hentaivn.bio")
// hentaivn has created 2 different interfaces for mobile and desktop, and Cloudflare detects whether it's mobile or not even with a desktop user agent.
override val headers: Headers = Headers.Builder().add("User-Agent", UserAgents.CHROME_MOBILE).build()
override val headers: Headers = Headers.Builder().add("User-Agent", UserAgents.CHROME_DESKTOP).build()
override val availableSortOrders: Set<SortOrder> = EnumSet.of(
SortOrder.UPDATED,

Loading…
Cancel
Save