MangaDistrict: fix next page (#1730)

* MangaDistrict: fix next page

* mangasubdirectory
This commit is contained in:
AwkwardPeak7 2024-03-08 14:57:37 +05:00 committed by Draff
parent f42f301af4
commit 757b067214
2 changed files with 4 additions and 2 deletions

View File

@ -3,7 +3,7 @@ ext {
extClass = '.MangaDistrict'
themePkg = 'madara'
baseUrl = 'https://mangadistrict.com'
overrideVersionCode = 3
overrideVersionCode = 4
isNsfw = true
}

View File

@ -23,11 +23,13 @@ class MangaDistrict :
),
ConfigurableSource {
override val mangaSubString = "read-scan"
private val preferences: SharedPreferences by lazy {
Injekt.get<Application>().getSharedPreferences("source_$id", 0x0000)
}
override fun searchMangaNextPageSelector() = "div[role=navigation] span.current + a.page"
override fun popularMangaNextPageSelector() = "div[role=navigation] span.current + a.page"
private val titleVersion = Regex("\\(.*\\)")