mirror of
https://github.com/keiyoushi/extensions-source.git
synced 2024-11-22 18:32:39 +01:00
Fix Photos18 parsing image’s url (#1477)
This commit is contained in:
parent
0f51a15a1d
commit
849728a71c
@ -1,7 +1,7 @@
|
||||
ext {
|
||||
extName = 'Photos18'
|
||||
extClass = '.Photos18'
|
||||
extVersionCode = 2
|
||||
extVersionCode = 3
|
||||
isNsfw = true
|
||||
}
|
||||
|
||||
|
@ -51,7 +51,7 @@ class Photos18 : HttpSource(), ConfigurableSource {
|
||||
SManga.create().apply {
|
||||
url = link.attr("href").stripLang()
|
||||
title = link.ownText()
|
||||
thumbnail_url = baseUrl + it.selectFirst(Evaluator.Tag("img"))!!.attr("data-src")
|
||||
thumbnail_url = baseUrl + it.selectFirst(Evaluator.Tag("img"))!!.attr("src")
|
||||
genre = cardBody.selectFirst(Evaluator.Tag("label"))!!.ownText()
|
||||
status = SManga.COMPLETED
|
||||
initialized = true
|
||||
@ -100,7 +100,7 @@ class Photos18 : HttpSource(), ConfigurableSource {
|
||||
val document = response.asJsoup()
|
||||
val images = document.selectFirst(Evaluator.Id("content"))!!.select(Evaluator.Tag("img"))
|
||||
return images.mapIndexed { index, image ->
|
||||
Page(index, imageUrl = image.attr("data-src"))
|
||||
Page(index, imageUrl = image.attr("src"))
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user