TeamX: extract images from canvas
instead of img
(#8624)
* feat(ar/teamx): Update image parsing logic to use data-src attribute * teamx: Update Team X app version code
This commit is contained in:
parent
54d9318a35
commit
83631d067e
@ -1,7 +1,7 @@
|
|||||||
ext {
|
ext {
|
||||||
extName = 'Team X'
|
extName = 'Team X'
|
||||||
extClass = '.TeamX'
|
extClass = '.TeamX'
|
||||||
extVersionCode = 20
|
extVersionCode = 21
|
||||||
isNsfw = false
|
isNsfw = false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -215,8 +215,8 @@ class TeamX : ParsedHttpSource(), ConfigurableSource {
|
|||||||
// Pages
|
// Pages
|
||||||
|
|
||||||
override fun pageListParse(document: Document): List<Page> {
|
override fun pageListParse(document: Document): List<Page> {
|
||||||
return document.select("div.image_list img[src]").mapIndexed { i, img ->
|
return document.select("div.image_list canvas[data-src]").mapIndexed { i, img ->
|
||||||
Page(i, "", img.absUrl("src"))
|
Page(i, "", img.absUrl("data-src"))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user