Disasterscans: fix again (#7758)

fix again
This commit is contained in:
Creepler13 2025-02-22 15:33:11 +01:00 committed by Draff
parent 8b86222f80
commit 027d09ffd9
No known key found for this signature in database
GPG Key ID: E8A89F3211677653
2 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
ext {
extName = 'Disaster Scans'
extClass = '.DisasterScans'
extVersionCode = 33
extVersionCode = 34
}
apply from: "$rootDir/common.gradle"

View File

@ -84,7 +84,7 @@ class DisasterScans : ParsedHttpSource() {
"ongoing" -> SManga.ONGOING
else -> SManga.UNKNOWN
}
genre = this.joinToString { text() }
genre = this.joinToString { it.text() }
}
}
}
@ -95,7 +95,7 @@ class DisasterScans : ParsedHttpSource() {
override fun chapterListParse(response: Response): List<SChapter> {
chapterDataRegex.find(response.body.string())?.destructured?.also { (chapterData, mangaId) ->
return json.decodeFromString<List<ChapterDTO>>(chapterData).map { chapter ->
return json.decodeFromString<List<ChapterDTO>>(chapterData.replace("\\", "")).map { chapter ->
SChapter.create().apply {
name = "Chapter ${chapter.ChapterNumber} - ${chapter.ChapterName}"
setUrlWithoutDomain(