mirror of
https://github.com/keiyoushi/extensions-source.git
synced 2024-11-22 02:12:42 +01:00
TM: Fix requests (#765)
This commit is contained in:
parent
2c1789d778
commit
32c4a69174
@ -1,7 +1,7 @@
|
||||
ext {
|
||||
extName = 'Tsuki Mangás'
|
||||
extClass = '.TsukiMangas'
|
||||
extVersionCode = 2
|
||||
extVersionCode = 3
|
||||
isNsfw = true
|
||||
}
|
||||
|
||||
|
@ -46,7 +46,9 @@ class TsukiMangas : HttpSource() {
|
||||
.build()
|
||||
}
|
||||
|
||||
override fun headersBuilder() = super.headersBuilder().add("Referer", "$baseUrl/")
|
||||
override fun headersBuilder() = super.headersBuilder()
|
||||
.add("Referer", "$baseUrl/")
|
||||
.add("X-Requested", "HttpsRequest")
|
||||
|
||||
private val json: Json by injectLazy()
|
||||
|
||||
@ -268,6 +270,6 @@ class TsukiMangas : HttpSource() {
|
||||
|
||||
private const val MAIN_CDN = "https://cdn.tsuki-mangas.com/tsuki"
|
||||
private const val SECONDARY_CDN = "https://cdn2.tsuki-mangas.com"
|
||||
private const val API_PATH = "/api/d1"
|
||||
private const val API_PATH = "/api/v3"
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user