parent
3495a64bf1
commit
6d5b43705c
|
@ -5,7 +5,7 @@ ext {
|
||||||
appName = 'Tachiyomi: Team X'
|
appName = 'Tachiyomi: Team X'
|
||||||
pkgNameSuffix = 'ar.teamx'
|
pkgNameSuffix = 'ar.teamx'
|
||||||
extClass = '.TeamX'
|
extClass = '.TeamX'
|
||||||
extVersionCode = 2
|
extVersionCode = 3
|
||||||
libVersion = '1.2'
|
libVersion = '1.2'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -36,7 +36,8 @@ 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:data-src")
|
thumbnail_url = element.select("img").let { if (it.hasAttr("data-src"))
|
||||||
|
it.attr("abs:data-src") else it.attr("abs:src") }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -97,7 +98,8 @@ 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:data-src")
|
thumbnail_url = info.select("img").let { if (it.hasAttr("data-src"))
|
||||||
|
it.attr("abs:data-src") else it.attr("abs:src") }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -118,7 +120,8 @@ 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:data-src"))
|
Page(i, "", img.let { if (it.hasAttr("data-src"))
|
||||||
|
it.attr("abs:data-src") else it.attr("abs:src") })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue