Fix Elder Manga: HTTP 404 on reader (#10920)
Fix: HTTP 404 on reader Updated the CDN URL and image path construction.
This commit is contained in:
parent
85d3008fb8
commit
f26545a8e8
@ -1,7 +1,7 @@
|
||||
ext {
|
||||
extName = 'Elder Manga'
|
||||
extClass = '.ElderManga'
|
||||
extVersionCode = 1
|
||||
extVersionCode = 2
|
||||
}
|
||||
|
||||
apply from: "$rootDir/common.gradle"
|
||||
|
||||
@ -28,7 +28,7 @@ class ElderManga : HttpSource() {
|
||||
override val baseUrl = "https://eldermanga.com"
|
||||
|
||||
// CDN used for search API responses and images
|
||||
private val CDN_URL = "https://cdn1.eldermanga.com"
|
||||
private val CDN_URL = "https://manga3.efsaneler.can.re"
|
||||
|
||||
override val lang = "tr"
|
||||
|
||||
@ -153,7 +153,7 @@ class ElderManga : HttpSource() {
|
||||
val results = pageRegex.findAll(script).toList()
|
||||
return results.mapIndexed { index, result ->
|
||||
val url = result.groups.get(1)!!.value
|
||||
Page(index, imageUrl = "$CDN_URL/upload/series/$url")
|
||||
Page(index, imageUrl = "$CDN_URL/$url")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user