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:
THE_ORONCO 2022-02-23 18:29:48 +01:00 committed by GitHub
parent 818bedc955
commit 86f88188b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 13 deletions

View File

@ -5,7 +5,7 @@ ext {
extName = 'aurora'
pkgNameSuffix = 'en.aurora'
extClass = '.Aurora'
extVersionCode = 2
extVersionCode = 3
}
apply from: "$rootDir/common.gradle"

View File

@ -148,13 +148,13 @@ class Aurora : HttpSource() {
val chapterArchiveUrl = "$baseUrl/archive/"
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
.mapIndexed { chapterIndex, chapter ->
val chapterOverviewLink = chapter.selectFirst(".blocks-gallery-item__caption a")
val chapterOverviewLink = chapter.selectFirst("a")
val chapterOverviewUrl = chapterOverviewLink.attr("href")
val chapterTitle = "$name - ${chapterOverviewLink.text()}"
val chapterThumbnail = chapter.selectFirst("figure img").attr("src")
val chapterThumbnail = chapter.selectFirst("img").attr("src")
SManga.create().apply {
setUrlWithoutDomain(chapterOverviewUrl)
@ -190,16 +190,9 @@ class Aurora : HttpSource() {
override fun popularMangaRequest(page: Int): Request = throw Exception("Not used")
override fun fetchSearchManga(
page: Int,
query: String,
filters: FilterList
): Observable<MangasPage> {
return Observable.just(generateAuroraMangasPage())
}
override fun fetchSearchManga(page: Int, query: String, filters: FilterList): Observable<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 =
throw Exception("Not used")
override fun searchMangaRequest(page: Int, query: String, filters: FilterList): Request = throw Exception("Not used")
}