Fix cover not loading at TS. (#6799)
This commit is contained in:
parent
7e0562b27b
commit
b7536c0e37
|
@ -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'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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) }
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue