From a76569e5ed015aae822cf6887c7c9eb8e4d9e61c Mon Sep 17 00:00:00 2001 From: Mike <51273546+SnakeDoc83@users.noreply.github.com> Date: Sat, 1 Feb 2020 17:35:08 -0500 Subject: [PATCH] Team X - src to data-src (#2174) Team X - src to data-src --- src/ar/teamx/build.gradle | 2 +- .../src/eu/kanade/tachiyomi/extension/ar/teamx/TeamX.kt | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ar/teamx/build.gradle b/src/ar/teamx/build.gradle index 98bf3335a..7b23abf66 100644 --- a/src/ar/teamx/build.gradle +++ b/src/ar/teamx/build.gradle @@ -5,7 +5,7 @@ ext { appName = 'Tachiyomi: Team X' pkgNameSuffix = 'ar.teamx' extClass = '.TeamX' - extVersionCode = 1 + extVersionCode = 2 libVersion = '1.2' } diff --git a/src/ar/teamx/src/eu/kanade/tachiyomi/extension/ar/teamx/TeamX.kt b/src/ar/teamx/src/eu/kanade/tachiyomi/extension/ar/teamx/TeamX.kt index b992ad434..5de2fb20f 100644 --- a/src/ar/teamx/src/eu/kanade/tachiyomi/extension/ar/teamx/TeamX.kt +++ b/src/ar/teamx/src/eu/kanade/tachiyomi/extension/ar/teamx/TeamX.kt @@ -36,7 +36,7 @@ class TeamX : ParsedHttpSource() { return SManga.create().apply { title = element.select(titleSelector).text() 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() description = info.select("div.story p").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 { return document.select("div#translationPageall img").mapIndexed { i, img -> - Page(i, "", img.attr("abs:src")) + Page(i, "", img.attr("abs:data-src")) } }