Foolslide - cleaner details (#3030)
This commit is contained in:
parent
2f57009d3d
commit
ee89cf8594
@ -5,7 +5,7 @@ ext {
|
|||||||
appName = 'Tachiyomi: FoolSlide (multiple sources)'
|
appName = 'Tachiyomi: FoolSlide (multiple sources)'
|
||||||
pkgNameSuffix = 'all.foolslide'
|
pkgNameSuffix = 'all.foolslide'
|
||||||
extClass = '.FoolSlideFactory'
|
extClass = '.FoolSlideFactory'
|
||||||
extVersionCode = 45
|
extVersionCode = 46
|
||||||
libVersion = '1.2'
|
libVersion = '1.2'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -123,10 +123,10 @@ abstract class FoolSlide(
|
|||||||
|
|
||||||
override fun mangaDetailsParse(document: Document): SManga {
|
override fun mangaDetailsParse(document: Document): SManga {
|
||||||
return SManga.create().apply {
|
return SManga.create().apply {
|
||||||
document.select(mangaDetailsInfoSelector).firstOrNull()?.text()?.let { infoElement ->
|
document.select(mangaDetailsInfoSelector).firstOrNull()?.html()?.let { infoHtml ->
|
||||||
author = infoElement.substringAfter("Author:").substringBefore("Artist:")
|
author = Regex("""Author</b>:\s?([^\n<]*)[\n<]""").find(infoHtml)?.groupValues?.get(1)
|
||||||
artist = infoElement.substringAfter("Artist:").substringBefore("Synopsis:")
|
artist = Regex("""Artist</b>:\s?([^\n<]*)[\n<]""").find(infoHtml)?.groupValues?.get(1)
|
||||||
description = infoElement.substringAfter("Synopsis:")
|
description = Regex("""(Synopsis|Description)</b>:\s?([^\n<]*)[\n<]""").find(infoHtml)?.groupValues?.get(2)
|
||||||
}
|
}
|
||||||
thumbnail_url = getDetailsThumbnail(document)
|
thumbnail_url = getDetailsThumbnail(document)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user