Tsumino: parse tags into in-app tags instead of description (#5678)

This commit is contained in:
scb261 2021-02-08 06:36:52 +02:00 committed by GitHub
parent 94ee0019c9
commit a0c031dce7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 14 deletions

View File

@ -5,7 +5,7 @@ ext {
extName = 'Tsumino'
pkgNameSuffix = 'en.tsumino'
extClass = '.Tsumino'
extVersionCode = 3
extVersionCode = 4
libVersion = '1.2'
containsNsfw = true
}

View File

@ -155,6 +155,7 @@ class Tsumino : ParsedHttpSource() {
manga.status = SManga.COMPLETED
manga.thumbnail_url = infoElement.select("img").attr("src")
manga.description = getDesc(document)
manga.genre = document.select("#Tag a").joinToString { it.text() }
return manga
}

View File

@ -39,7 +39,6 @@ class TsuminoUtils {
val pages = document.select("#Pages").text()
val parodies = document.select("#Parody a")
val characters = document.select("#Character a")
val tags = document.select("#Tag a")
stringBuilder.append("Pages: $pages")
@ -67,18 +66,6 @@ class TsuminoUtils {
}
}
if (tags.size > 0) {
stringBuilder.append("\n\n")
stringBuilder.append("Tags: ")
tags.forEach {
stringBuilder.append(it.text())
if (it != tags.last())
stringBuilder.append(", ")
}
}
return stringBuilder.toString()
}