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:
xMohnad 2025-04-25 17:14:14 +03:00 committed by Draff
parent 54d9318a35
commit 83631d067e
No known key found for this signature in database
GPG Key ID: E8A89F3211677653
2 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
ext { ext {
extName = 'Team X' extName = 'Team X'
extClass = '.TeamX' extClass = '.TeamX'
extVersionCode = 20 extVersionCode = 21
isNsfw = false isNsfw = false
} }

View File

@ -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"))
} }
} }