MangaLife, MangaSee: revert temporary page fixes, show error about blocking tachi when no host is found (#6145)
This commit is contained in:
parent
30ebfdedd7
commit
3ddd9a52e2
|
@ -5,7 +5,7 @@ ext {
|
||||||
extName = 'MangaLife'
|
extName = 'MangaLife'
|
||||||
pkgNameSuffix = 'en.mangalife'
|
pkgNameSuffix = 'en.mangalife'
|
||||||
extClass = '.MangaLife'
|
extClass = '.MangaLife'
|
||||||
extVersionCode = 14
|
extVersionCode = 15
|
||||||
libVersion = '1.2'
|
libVersion = '1.2'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -41,7 +41,7 @@ class MangaLife : HttpSource() {
|
||||||
|
|
||||||
override val supportsLatest = true
|
override val supportsLatest = true
|
||||||
|
|
||||||
private val rateLimitInterceptor = RateLimitInterceptor(1, 2)
|
private val rateLimitInterceptor = RateLimitInterceptor(1)
|
||||||
|
|
||||||
override val client: OkHttpClient = network.cloudflareClient.newBuilder()
|
override val client: OkHttpClient = network.cloudflareClient.newBuilder()
|
||||||
.addNetworkInterceptor(rateLimitInterceptor)
|
.addNetworkInterceptor(rateLimitInterceptor)
|
||||||
|
@ -264,7 +264,13 @@ class MangaLife : HttpSource() {
|
||||||
|
|
||||||
val pageTotal = curChapter["Page"].string.toInt()
|
val pageTotal = curChapter["Page"].string.toInt()
|
||||||
|
|
||||||
val host = "https://" + script.substringAfter("vm.justgiveupalready = \"").substringBefore("\"")
|
val host = "https://" +
|
||||||
|
script
|
||||||
|
.substringAfter("vm.CurPathName = \"", "")
|
||||||
|
.substringBefore("\"")
|
||||||
|
.also { if (it.isEmpty())
|
||||||
|
throw Exception("$name is overloaded and blocking Tachiyomi right now. Wait for unblock.")
|
||||||
|
}
|
||||||
val titleURI = script.substringAfter("vm.IndexName = \"").substringBefore("\"")
|
val titleURI = script.substringAfter("vm.IndexName = \"").substringBefore("\"")
|
||||||
val seasonURI = curChapter["Directory"].string
|
val seasonURI = curChapter["Directory"].string
|
||||||
.let { if (it.isEmpty()) "" else "$it/" }
|
.let { if (it.isEmpty()) "" else "$it/" }
|
||||||
|
|
|
@ -5,7 +5,7 @@ ext {
|
||||||
extName = 'Mangasee'
|
extName = 'Mangasee'
|
||||||
pkgNameSuffix = 'en.mangasee'
|
pkgNameSuffix = 'en.mangasee'
|
||||||
extClass = '.Mangasee'
|
extClass = '.Mangasee'
|
||||||
extVersionCode = 18
|
extVersionCode = 19
|
||||||
libVersion = '1.2'
|
libVersion = '1.2'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -44,7 +44,7 @@ class Mangasee : HttpSource() {
|
||||||
|
|
||||||
override val supportsLatest = true
|
override val supportsLatest = true
|
||||||
|
|
||||||
private val rateLimitInterceptor = RateLimitInterceptor(1, 2)
|
private val rateLimitInterceptor = RateLimitInterceptor(1)
|
||||||
|
|
||||||
override val client: OkHttpClient = network.cloudflareClient.newBuilder()
|
override val client: OkHttpClient = network.cloudflareClient.newBuilder()
|
||||||
.addNetworkInterceptor(rateLimitInterceptor)
|
.addNetworkInterceptor(rateLimitInterceptor)
|
||||||
|
@ -268,7 +268,13 @@ class Mangasee : HttpSource() {
|
||||||
|
|
||||||
val pageTotal = curChapter["Page"].string.toInt()
|
val pageTotal = curChapter["Page"].string.toInt()
|
||||||
|
|
||||||
val host = "https://" + script.substringAfter("vm.justgiveupalready = \"").substringBefore("\"")
|
val host = "https://" +
|
||||||
|
script
|
||||||
|
.substringAfter("vm.CurPathName = \"", "")
|
||||||
|
.substringBefore("\"")
|
||||||
|
.also { if (it.isEmpty())
|
||||||
|
throw Exception("$name is overloaded and blocking Tachiyomi right now. Wait for unblock.")
|
||||||
|
}
|
||||||
val titleURI = script.substringAfter("vm.IndexName = \"").substringBefore("\"")
|
val titleURI = script.substringAfter("vm.IndexName = \"").substringBefore("\"")
|
||||||
val seasonURI = curChapter["Directory"].string
|
val seasonURI = curChapter["Directory"].string
|
||||||
.let { if (it.isEmpty()) "" else "$it/" }
|
.let { if (it.isEmpty()) "" else "$it/" }
|
||||||
|
|
Loading…
Reference in New Issue