Tsumino: parse tags into in-app tags instead of description (#5678)
This commit is contained in:
parent
94ee0019c9
commit
a0c031dce7
|
@ -5,7 +5,7 @@ ext {
|
||||||
extName = 'Tsumino'
|
extName = 'Tsumino'
|
||||||
pkgNameSuffix = 'en.tsumino'
|
pkgNameSuffix = 'en.tsumino'
|
||||||
extClass = '.Tsumino'
|
extClass = '.Tsumino'
|
||||||
extVersionCode = 3
|
extVersionCode = 4
|
||||||
libVersion = '1.2'
|
libVersion = '1.2'
|
||||||
containsNsfw = true
|
containsNsfw = true
|
||||||
}
|
}
|
||||||
|
|
|
@ -155,6 +155,7 @@ class Tsumino : ParsedHttpSource() {
|
||||||
manga.status = SManga.COMPLETED
|
manga.status = SManga.COMPLETED
|
||||||
manga.thumbnail_url = infoElement.select("img").attr("src")
|
manga.thumbnail_url = infoElement.select("img").attr("src")
|
||||||
manga.description = getDesc(document)
|
manga.description = getDesc(document)
|
||||||
|
manga.genre = document.select("#Tag a").joinToString { it.text() }
|
||||||
|
|
||||||
return manga
|
return manga
|
||||||
}
|
}
|
||||||
|
|
|
@ -39,7 +39,6 @@ class TsuminoUtils {
|
||||||
val pages = document.select("#Pages").text()
|
val pages = document.select("#Pages").text()
|
||||||
val parodies = document.select("#Parody a")
|
val parodies = document.select("#Parody a")
|
||||||
val characters = document.select("#Character a")
|
val characters = document.select("#Character a")
|
||||||
val tags = document.select("#Tag a")
|
|
||||||
|
|
||||||
stringBuilder.append("Pages: $pages")
|
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()
|
return stringBuilder.toString()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue