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:
Hasan 2025-10-08 18:38:43 +03:00 committed by Draff
parent f26545a8e8
commit 07c8fd1080
Signed by: Draff
GPG Key ID: E8A89F3211677653
2 changed files with 3 additions and 3 deletions

View File

@ -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"

View File

@ -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()