* fix 45ca32d

fixes a mistake (I made) in 45ca32d by not using __.toRegex()__

* bump version
This commit is contained in:
Guiorgy 2020-01-06 00:21:37 +04:00 committed by arkon
parent b4bf96a0f0
commit 57a03a182e
2 changed files with 5 additions and 2 deletions

View File

@ -5,7 +5,7 @@ ext {
appName = 'Tachiyomi: MangaBox (Mangakakalot and others)'
pkgNameSuffix = 'all.mangabox'
extClass = '.MangaBoxFactory'
extVersionCode = 9
extVersionCode = 10
libVersion = '1.2'
}

View File

@ -126,7 +126,10 @@ abstract class MangaBox (
infoElement.select("td:containsOwn(genres) + td a").joinToString { it.text() }
}
}
description = document.select(descriptionSelector)?.first()?.ownText()?.replace("\\<br\\>", "\n")?.replace("\\<.*?\\>", "")?.replace("^$title summary\\:", "")
description = document.select(descriptionSelector)?.first()?.ownText()
?.replace("""^$title summary:\s""".toRegex(), "")
?.replace("""<\s*br\s*\/?>""".toRegex(), "\n")
?.replace("<[^>]*>".toRegex(), "")
thumbnail_url = document.select(thumbnailSelector).attr("abs:src")
}
}