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 {
|
ext {
|
||||||
extName = 'Uzay Manga'
|
extName = 'Uzay Manga'
|
||||||
extClass = '.UzayManga'
|
extClass = '.UzayManga'
|
||||||
extVersionCode = 38
|
extVersionCode = 39
|
||||||
}
|
}
|
||||||
|
|
||||||
apply from: "$rootDir/common.gradle"
|
apply from: "$rootDir/common.gradle"
|
||||||
|
|||||||
@ -139,7 +139,7 @@ class UzayManga : ParsedHttpSource() {
|
|||||||
|
|
||||||
return pageRegex.findAll(script).mapIndexed { index, result ->
|
return pageRegex.findAll(script).mapIndexed { index, result ->
|
||||||
val url = result.groups.get(1)!!.value
|
val url = result.groups.get(1)!!.value
|
||||||
Page(index, document.location(), "$CDN_URL/upload/series/$url")
|
Page(index, document.location(), "$CDN_URL/$url")
|
||||||
}.toList()
|
}.toList()
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -155,7 +155,7 @@ class UzayManga : ParsedHttpSource() {
|
|||||||
fragment.any { trim().contains(it, ignoreCase = true) }
|
fragment.any { trim().contains(it, ignoreCase = true) }
|
||||||
|
|
||||||
companion object {
|
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:"
|
const val URL_SEARCH_PREFIX = "slug:"
|
||||||
val dateFormat = SimpleDateFormat("MMM d ,yyyy", Locale("tr"))
|
val dateFormat = SimpleDateFormat("MMM d ,yyyy", Locale("tr"))
|
||||||
val pageRegex = """\\"path\\":\\"([^"]+)\\""".trimIndent().toRegex()
|
val pageRegex = """\\"path\\":\\"([^"]+)\\""".trimIndent().toRegex()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user