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:
parent
75e1c1016a
commit
f2d12068a0
@ -3,7 +3,7 @@ ext {
|
||||
extClass = '.StarboundScans'
|
||||
themePkg = 'madara'
|
||||
baseUrl = 'https://starboundscans.com'
|
||||
overrideVersionCode = 0
|
||||
overrideVersionCode = 1
|
||||
isNsfw = false
|
||||
}
|
||||
|
||||
|
@ -65,7 +65,7 @@ class StarboundScans : Madara(
|
||||
|
||||
override fun pageListParse(document: Document): List<Page> {
|
||||
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)
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user