Run formatter
This commit is contained in:
parent
09c23fd1b7
commit
151cec7f71
@ -10,8 +10,6 @@ import eu.kanade.tachiyomi.source.model.SChapter
|
||||
import eu.kanade.tachiyomi.source.model.SManga
|
||||
import eu.kanade.tachiyomi.source.online.ParsedHttpSource
|
||||
import kotlinx.serialization.json.Json
|
||||
import kotlinx.serialization.json.jsonArray
|
||||
import kotlinx.serialization.json.jsonPrimitive
|
||||
import okhttp3.Cookie
|
||||
import okhttp3.CookieJar
|
||||
import okhttp3.Headers
|
||||
@ -20,8 +18,8 @@ import okhttp3.HttpUrl.Companion.toHttpUrl
|
||||
import okhttp3.OkHttpClient
|
||||
import okhttp3.Request
|
||||
import org.jsoup.nodes.Document
|
||||
import uy.kohesive.injekt.injectLazy
|
||||
import org.jsoup.nodes.Element
|
||||
import uy.kohesive.injekt.injectLazy
|
||||
import java.text.SimpleDateFormat
|
||||
import java.util.Calendar
|
||||
import java.util.Locale
|
||||
@ -37,12 +35,12 @@ class MangaFox : ParsedHttpSource() {
|
||||
override val lang: String = "en"
|
||||
|
||||
override val supportsLatest: Boolean = true
|
||||
|
||||
|
||||
private val json by injectLazy<Json>()
|
||||
|
||||
override val client: OkHttpClient = network.cloudflareClient.newBuilder()
|
||||
.rateLimit(1, 1)
|
||||
// Force readway=2 cookie to get all page URLs at once
|
||||
// Force readway=2 cookie to get all page URLs at once
|
||||
.cookieJar(
|
||||
object : CookieJar {
|
||||
private val cookieManager by lazy { CookieManager.getInstance() }
|
||||
@ -285,7 +283,7 @@ class MangaFox : ParsedHttpSource() {
|
||||
Pair("3 stars", "3"),
|
||||
Pair("4 stars", "4"),
|
||||
Pair("5 stars", "5"),
|
||||
)
|
||||
),
|
||||
)
|
||||
|
||||
private class RatingFilter : Filter.Group<UriPartFilter>("Rating", listOf(RatingMethodFilter(), RatingValueFilter()))
|
||||
|
@ -96,12 +96,12 @@ class CuuTruyenImageInterceptor : Interceptor {
|
||||
|
||||
/*
|
||||
rollup -f iife -p terser -n cuudrm cuudrm_bg.js
|
||||
|
||||
|
||||
Previous script:
|
||||
|
||||
|
||||
cuudrm_bg.js - https://gist.githubusercontent.com/beerpiss/9fe90191d4e67bba1ab69a14618e2036/raw/ce078b70265633f0b619fb6c0d454c0c3c195ab3/cuudrm_bg.js
|
||||
cuudrm_bg.wasm.js - wasm2js + https://cuutruyen.net/ec6c013a024fb3d1.module.wasm
|
||||
|
||||
|
||||
Current script:
|
||||
|
||||
cuudrm_bg.js - https://gist.githubusercontent.com/AccountForStealingCode/1dfe44d7ae704d8f37fc0b9cafc1a960/raw/5d5ac99fe1b4dc048aa10c222ea70c8462056b6a/cuudrm_bg.js
|
||||
|
Loading…
x
Reference in New Issue
Block a user