Update HentaiVNParser.kt
not sure, i hope it will works...
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user