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'
|
||||
pkgNameSuffix = 'en.aurora'
|
||||
extClass = '.Aurora'
|
||||
extVersionCode = 2
|
||||
extVersionCode = 3
|
||||
}
|
||||
|
||||
apply from: "$rootDir/common.gradle"
|
||||
|
@ -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")
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user