disable playwright for v0.6.7

This commit is contained in:
Aria Moradi
2023-02-12 14:34:15 +03:30
parent 926a53a4b0
commit a027d6df1b

View File

@@ -38,6 +38,8 @@ class CloudflareInterceptor : Interceptor {
return originalResponse return originalResponse
} }
throw IOException("playwrite is diabled for v0.6.7")
logger.debug { "Cloudflare anti-bot is on, CloudflareInterceptor is kicking in..." } logger.debug { "Cloudflare anti-bot is on, CloudflareInterceptor is kicking in..." }
return try { return try {
@@ -137,6 +139,8 @@ object CFClearance {
fun getWebViewUserAgent(): String { fun getWebViewUserAgent(): String {
return try { return try {
throw PlaywrightException("playwrite is diabled for v0.6.7")
Playwright.create().use { playwright -> Playwright.create().use { playwright ->
playwright.chromium().launch( playwright.chromium().launch(
LaunchOptions() LaunchOptions()