ReadMangas: Update pathsegment (#7113)

Update pathsegment
This commit is contained in:
Chopper 2025-01-10 20:47:14 -03:00 committed by Draff
parent f1428f8938
commit 699740accb
No known key found for this signature in database
GPG Key ID: E8A89F3211677653
2 changed files with 5 additions and 5 deletions

View File

@ -1,7 +1,7 @@
ext {
extName = 'Read Mangas'
extClass = '.ReadMangas'
extVersionCode = 33
extVersionCode = 34
}
apply from: "$rootDir/common.gradle"

View File

@ -73,7 +73,7 @@ class ReadMangas() : HttpSource() {
)
}
val url = "$baseUrl/api/trpc/manga.getAllManga?batch=1".toHttpUrl().newBuilder()
val url = "$baseUrl/api/deprecated/manga.getAllManga?batch=1".toHttpUrl().newBuilder()
.addQueryParameter("batch", "1")
.addQueryParameter("input", input.toString())
.build()
@ -111,7 +111,7 @@ class ReadMangas() : HttpSource() {
)
}
val url = "$baseUrl/api/trpc/discover.updated".toHttpUrl().newBuilder()
val url = "$baseUrl/api/deprecated/discover.updated".toHttpUrl().newBuilder()
.addQueryParameter("batch", "1")
.addQueryParameter("input", input.toString())
.build()
@ -127,7 +127,7 @@ class ReadMangas() : HttpSource() {
// =========================== Search =================================
override fun searchMangaRequest(page: Int, query: String, filters: FilterList): Request {
val url = "$baseUrl/api/trpc/discover.search?batch=1"
val url = "$baseUrl/api/deprecated/discover.search?batch=1"
val payload = buildJsonObject {
put(
"0",
@ -194,7 +194,7 @@ class ReadMangas() : HttpSource() {
)
}
val url = "$baseUrl/api/trpc/chapter.publicAllChapters".toHttpUrl().newBuilder()
val url = "$baseUrl/api/deprecated/chapter.publicAllChapters".toHttpUrl().newBuilder()
.addQueryParameter("batch", "1")
.addQueryParameter("input", input.toString())
.build()