Fix Uzay Manga: HTTP 404 on reader (#10921)
Fix: HTTP 404 on reader Updated the CDN URL and image path construction.
This commit is contained in:
parent
f26545a8e8
commit
07c8fd1080
@ -1,7 +1,7 @@
|
||||
ext {
|
||||
extName = 'Uzay Manga'
|
||||
extClass = '.UzayManga'
|
||||
extVersionCode = 38
|
||||
extVersionCode = 39
|
||||
}
|
||||
|
||||
apply from: "$rootDir/common.gradle"
|
||||
|
||||
@ -139,7 +139,7 @@ class UzayManga : ParsedHttpSource() {
|
||||
|
||||
return pageRegex.findAll(script).mapIndexed { index, result ->
|
||||
val url = result.groups.get(1)!!.value
|
||||
Page(index, document.location(), "$CDN_URL/upload/series/$url")
|
||||
Page(index, document.location(), "$CDN_URL/$url")
|
||||
}.toList()
|
||||
}
|
||||
|
||||
@ -155,7 +155,7 @@ class UzayManga : ParsedHttpSource() {
|
||||
fragment.any { trim().contains(it, ignoreCase = true) }
|
||||
|
||||
companion object {
|
||||
const val CDN_URL = "https://cdn1.uzaymanga.com"
|
||||
const val CDN_URL = "https://manga2.efsaneler.can.re"
|
||||
const val URL_SEARCH_PREFIX = "slug:"
|
||||
val dateFormat = SimpleDateFormat("MMM d ,yyyy", Locale("tr"))
|
||||
val pageRegex = """\\"path\\":\\"([^"]+)\\""".trimIndent().toRegex()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user