Team X - src to data-src (#2174)

Team X - src to data-src
This commit is contained in:
Mike 2020-02-01 17:35:08 -05:00 committed by GitHub
parent 0f3f79eebd
commit a76569e5ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -5,7 +5,7 @@ ext {
appName = 'Tachiyomi: Team X' appName = 'Tachiyomi: Team X'
pkgNameSuffix = 'ar.teamx' pkgNameSuffix = 'ar.teamx'
extClass = '.TeamX' extClass = '.TeamX'
extVersionCode = 1 extVersionCode = 2
libVersion = '1.2' libVersion = '1.2'
} }

View File

@ -36,7 +36,7 @@ class TeamX : ParsedHttpSource() {
return SManga.create().apply { return SManga.create().apply {
title = element.select(titleSelector).text() title = element.select(titleSelector).text()
setUrlWithoutDomain(element.select("a").first().attr("href")) setUrlWithoutDomain(element.select("a").first().attr("href"))
thumbnail_url = element.select("img").first().attr("abs:src") thumbnail_url = element.select("img").first().attr("abs:data-src")
} }
} }
@ -97,7 +97,7 @@ class TeamX : ParsedHttpSource() {
title = info.select("div.col-md-9").text() title = info.select("div.col-md-9").text()
description = info.select("div.story p").text() description = info.select("div.story p").text()
genre = info.select("div.genre a").joinToString { it.text() } genre = info.select("div.genre a").joinToString { it.text() }
thumbnail_url = info.select("img").attr("abs:src") thumbnail_url = info.select("img").attr("abs:data-src")
} }
} }
} }
@ -118,7 +118,7 @@ class TeamX : ParsedHttpSource() {
override fun pageListParse(document: Document): List<Page> { override fun pageListParse(document: Document): List<Page> {
return document.select("div#translationPageall img").mapIndexed { i, img -> return document.select("div#translationPageall img").mapIndexed { i, img ->
Page(i, "", img.attr("abs:src")) Page(i, "", img.attr("abs:data-src"))
} }
} }