mirror of
https://github.com/keiyoushi/extensions-source.git
synced 2024-11-25 03:33:24 +01:00
Update Iqiyi (#820)
This commit is contained in:
parent
cdd1861337
commit
eeb14509c8
@ -1,7 +1,7 @@
|
||||
ext {
|
||||
extName = 'Iqiyi'
|
||||
extClass = '.Iqiyi'
|
||||
extVersionCode = 1
|
||||
extVersionCode = 2
|
||||
}
|
||||
|
||||
apply from: "$rootDir/common.gradle"
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user