Fix StarboundScans image loading by using data-src attribute (#10532)

Fix StarboundScans image loading by using data-src instead of src

- Update pageListParse to use data-src attribute for image URLs
- This fixes the IllegalArgumentException caused by data: URLs
- Aligns with Madara base implementation pattern
This commit is contained in:
Aurel 2025-09-16 03:31:27 +02:00 committed by Draff
parent 75e1c1016a
commit f2d12068a0
Signed by: Draff
GPG Key ID: E8A89F3211677653
2 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@ ext {
extClass = '.StarboundScans' extClass = '.StarboundScans'
themePkg = 'madara' themePkg = 'madara'
baseUrl = 'https://starboundscans.com' baseUrl = 'https://starboundscans.com'
overrideVersionCode = 0 overrideVersionCode = 1
isNsfw = false isNsfw = false
} }

View File

@ -65,7 +65,7 @@ class StarboundScans : Madara(
override fun pageListParse(document: Document): List<Page> { override fun pageListParse(document: Document): List<Page> {
return document.select("img.wp-manga-chapter-img").mapIndexed { index, element -> return document.select("img.wp-manga-chapter-img").mapIndexed { index, element ->
val imageUrl = element.attr("abs:src") val imageUrl = element.attr("abs:data-src")
Page(index, url = document.location(), imageUrl = imageUrl) Page(index, url = document.location(), imageUrl = imageUrl)
} }
} }