[Dynasty] Update chapter regex (#12037)

* Allow underscores in chapter numbers

* Update extVersionCode
This commit is contained in:
lord-ne 2022-06-02 17:48:12 -04:00 committed by GitHub
parent 2d94cacca7
commit 143f6cc3c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@ ext {
extName = 'Dynasty'
pkgNameSuffix = 'en.dynasty'
extClass = '.DynastyFactory'
extVersionCode = 17
extVersionCode = 18
}
apply from: "$rootDir/common.gradle"

View File

@ -22,7 +22,7 @@ class DynastySeries : DynastyScans() {
override fun fetchSearchManga(page: Int, query: String, filters: FilterList): Observable<MangasPage> {
if (query.startsWith("manga:chapters:")) {
val seriesName = Regex("""manga:chapters:(.*?)_ch\d+""").matchEntire(query)?.groups?.get(1)?.value
val seriesName = Regex("""manga:chapters:(.*?)_ch[0-9_]+""").matchEntire(query)?.groups?.get(1)?.value
if (seriesName != null) {
return super.fetchSearchManga(page, "manga:$searchPrefix:$seriesName", filters)
}