mirror of
https://github.com/Suwayomi/Suwayomi-Server.git
synced 2026-07-03 02:44:34 -05:00
Get Playwright working (#462)
* Get Playwright working with ShadowJar * Set system driver implementation * Minor cleanup * Fix run gradle task and re-add some removed code * No need to get the FS if it already exists * use java implementation Co-authored-by: Aria Moradi <aria.moradi007@gmail.com>
This commit is contained in:
@@ -68,6 +68,12 @@ object CFClearance {
|
||||
private val logger = KotlinLogging.logger {}
|
||||
private val network: NetworkHelper by injectLazy()
|
||||
|
||||
init {
|
||||
// Fix the default DriverJar issue by providing our own implementation
|
||||
// ref: https://github.com/microsoft/playwright-java/issues/1138
|
||||
System.setProperty("playwright.driver.impl", "eu.kanade.tachiyomi.network.interceptor.DriverJar")
|
||||
}
|
||||
|
||||
fun resolveWithWebView(originalRequest: Request): Request {
|
||||
val url = originalRequest.url.toString()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user