Update Iqiyi (#820)

This commit is contained in:
Mike 2024-01-30 16:55:41 -05:00 committed by GitHub
parent cdd1861337
commit eeb14509c8
2 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
ext {
extName = 'Iqiyi'
extClass = '.Iqiyi'
extVersionCode = 1
extVersionCode = 2
}
apply from: "$rootDir/common.gradle"

View File

@ -27,7 +27,7 @@ class Iqiyi : ParsedHttpSource() {
// Popular
override fun popularMangaRequest(page: Int) = GET("$baseUrl/category/全部_0_9_$page/", headers)
override fun popularMangaRequest(page: Int) = GET("$baseUrl/category/全部_-1_-1_9_$page/", headers)
override fun popularMangaNextPageSelector(): String = "div.mod-page > a.a1:contains(下一页)"
override fun popularMangaSelector(): String = "ul.cartoon-hot-ul > li.cartoon-hot-list"
override fun popularMangaFromElement(element: Element): SManga = SManga.create().apply {
@ -38,7 +38,7 @@ class Iqiyi : ParsedHttpSource() {
// Latest
override fun latestUpdatesRequest(page: Int) = GET("$baseUrl/category/全部_0_4_$page/", headers)
override fun latestUpdatesRequest(page: Int) = GET("$baseUrl/category/全部_-1_-1_4_$page/", headers)
override fun latestUpdatesNextPageSelector(): String = popularMangaNextPageSelector()
override fun latestUpdatesSelector() = popularMangaSelector()
override fun latestUpdatesFromElement(element: Element) = popularMangaFromElement(element)