Fix cover not loading at TS. (#6799)

This commit is contained in:
Alessandro Jean 2021-05-02 15:12:24 -03:00 committed by GitHub
parent 7e0562b27b
commit b7536c0e37
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -5,7 +5,7 @@ ext {
extName = 'Tao Sect' extName = 'Tao Sect'
pkgNameSuffix = 'pt.taosect' pkgNameSuffix = 'pt.taosect'
extClass = '.TaoSect' extClass = '.TaoSect'
extVersionCode = 2 extVersionCode = 3
libVersion = '1.2' libVersion = '1.2'
} }

View File

@ -120,7 +120,7 @@ class TaoSect : ParsedHttpSource() {
genre = header.select("table.tabela-projeto tr:eq(10) a").joinToString { it.text() } genre = header.select("table.tabela-projeto tr:eq(10) a").joinToString { it.text() }
status = header.select("table.tabela-projeto tr:eq(4) td:eq(1)")!!.text().toStatus() status = header.select("table.tabela-projeto tr:eq(4) td:eq(1)")!!.text().toStatus()
description = header.select("table.tabela-projeto tr:eq(9) p")!!.text() description = header.select("table.tabela-projeto tr:eq(9) p")!!.text()
thumbnail_url = header.select("div.imagens-projeto img[alt]").first()!!.attr("src") thumbnail_url = header.select("div.imagens-projeto img[alt]").first()!!.attr("data-src")
} }
override fun chapterListParse(response: Response): List<SChapter> { override fun chapterListParse(response: Response): List<SChapter> {
@ -263,7 +263,7 @@ class TaoSect : ParsedHttpSource() {
companion object { companion object {
private const val USER_AGENT = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) " + private const val USER_AGENT = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) " +
"AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.128 Safari/537.36" "AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.93 Safari/537.36"
private val DATE_FORMATTER by lazy { SimpleDateFormat("(dd/MM/yyyy)", Locale.ENGLISH) } private val DATE_FORMATTER by lazy { SimpleDateFormat("(dd/MM/yyyy)", Locale.ENGLISH) }