[FMReader] Comma-separate author list (#7953)

This commit is contained in:
FlaminSarge 2021-07-03 03:19:33 -07:00 committed by GitHub
parent 1882705bd4
commit a5f618c16a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -159,9 +159,9 @@ abstract class FMReader(
val infoElement = document.select("div.row").first()
return SManga.create().apply {
infoElement.select("li a.btn-info").text().let {
if (it.contains("Updating", true).not()) author = it
}
author = infoElement.select("li a.btn-info").eachText().filter {
it.equals("Updating", true).not()
}.joinToString().takeIf { it.isNotBlank() }
genre = infoElement.select("li a.btn-danger").joinToString { it.text() }
status = parseStatus(infoElement.select("li a.btn-success").first()?.text())
description = document.select("div.detail .content, div.row ~ div.row:has(h3:first-child) p, .summary-content p").text().trim()

View File

@ -10,7 +10,7 @@ class FMReaderGenerator : ThemeSourceGenerator {
override val themeClass = "FMReader"
override val baseVersionCode: Int = 4
override val baseVersionCode: Int = 5
/** For future sources: when testing and popularMangaRequest() returns a Jsoup error instead of results
* most likely the fix is to override popularMangaNextPageSelector() */