Aurora: Bug fixes for missing chapters and flooding of search results (#10911)
* fixed problems that arouse because of changed page layout * new extension version
This commit is contained in:
parent
818bedc955
commit
86f88188b1
@ -5,7 +5,7 @@ ext {
|
|||||||
extName = 'aurora'
|
extName = 'aurora'
|
||||||
pkgNameSuffix = 'en.aurora'
|
pkgNameSuffix = 'en.aurora'
|
||||||
extClass = '.Aurora'
|
extClass = '.Aurora'
|
||||||
extVersionCode = 2
|
extVersionCode = 3
|
||||||
}
|
}
|
||||||
|
|
||||||
apply from: "$rootDir/common.gradle"
|
apply from: "$rootDir/common.gradle"
|
||||||
|
@ -148,13 +148,13 @@ class Aurora : HttpSource() {
|
|||||||
val chapterArchiveUrl = "$baseUrl/archive/"
|
val chapterArchiveUrl = "$baseUrl/archive/"
|
||||||
|
|
||||||
val chapterOverviewDoc = client.newCall(GET(chapterArchiveUrl, headers)).execute().asJsoup()
|
val chapterOverviewDoc = client.newCall(GET(chapterArchiveUrl, headers)).execute().asJsoup()
|
||||||
val chapterBlockElements = chapterOverviewDoc.select(".blocks-gallery-item")
|
val chapterBlockElements = chapterOverviewDoc.select(".wp-block-image")
|
||||||
val mangasFromChapters = chapterBlockElements
|
val mangasFromChapters = chapterBlockElements
|
||||||
.mapIndexed { chapterIndex, chapter ->
|
.mapIndexed { chapterIndex, chapter ->
|
||||||
val chapterOverviewLink = chapter.selectFirst(".blocks-gallery-item__caption a")
|
val chapterOverviewLink = chapter.selectFirst("a")
|
||||||
val chapterOverviewUrl = chapterOverviewLink.attr("href")
|
val chapterOverviewUrl = chapterOverviewLink.attr("href")
|
||||||
val chapterTitle = "$name - ${chapterOverviewLink.text()}"
|
val chapterTitle = "$name - ${chapterOverviewLink.text()}"
|
||||||
val chapterThumbnail = chapter.selectFirst("figure img").attr("src")
|
val chapterThumbnail = chapter.selectFirst("img").attr("src")
|
||||||
|
|
||||||
SManga.create().apply {
|
SManga.create().apply {
|
||||||
setUrlWithoutDomain(chapterOverviewUrl)
|
setUrlWithoutDomain(chapterOverviewUrl)
|
||||||
@ -190,16 +190,9 @@ class Aurora : HttpSource() {
|
|||||||
|
|
||||||
override fun popularMangaRequest(page: Int): Request = throw Exception("Not used")
|
override fun popularMangaRequest(page: Int): Request = throw Exception("Not used")
|
||||||
|
|
||||||
override fun fetchSearchManga(
|
override fun fetchSearchManga(page: Int, query: String, filters: FilterList): Observable<MangasPage> = throw Exception("Not used")
|
||||||
page: Int,
|
|
||||||
query: String,
|
|
||||||
filters: FilterList
|
|
||||||
): Observable<MangasPage> {
|
|
||||||
return Observable.just(generateAuroraMangasPage())
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun searchMangaParse(response: Response): MangasPage = throw Exception("Not used")
|
override fun searchMangaParse(response: Response): MangasPage = throw Exception("Not used")
|
||||||
|
|
||||||
override fun searchMangaRequest(page: Int, query: String, filters: FilterList): Request =
|
override fun searchMangaRequest(page: Int, query: String, filters: FilterList): Request = throw Exception("Not used")
|
||||||
throw Exception("Not used")
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user