[Dynasty] Update chapter regex (#12037)
* Allow underscores in chapter numbers * Update extVersionCode
This commit is contained in:
parent
2d94cacca7
commit
143f6cc3c9
|
@ -6,7 +6,7 @@ ext {
|
||||||
extName = 'Dynasty'
|
extName = 'Dynasty'
|
||||||
pkgNameSuffix = 'en.dynasty'
|
pkgNameSuffix = 'en.dynasty'
|
||||||
extClass = '.DynastyFactory'
|
extClass = '.DynastyFactory'
|
||||||
extVersionCode = 17
|
extVersionCode = 18
|
||||||
}
|
}
|
||||||
|
|
||||||
apply from: "$rootDir/common.gradle"
|
apply from: "$rootDir/common.gradle"
|
||||||
|
|
|
@ -22,7 +22,7 @@ class DynastySeries : DynastyScans() {
|
||||||
|
|
||||||
override fun fetchSearchManga(page: Int, query: String, filters: FilterList): Observable<MangasPage> {
|
override fun fetchSearchManga(page: Int, query: String, filters: FilterList): Observable<MangasPage> {
|
||||||
if (query.startsWith("manga:chapters:")) {
|
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) {
|
if (seriesName != null) {
|
||||||
return super.fetchSearchManga(page, "manga:$searchPrefix:$seriesName", filters)
|
return super.fetchSearchManga(page, "manga:$searchPrefix:$seriesName", filters)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue