diff --git a/dl-downer/src/utils/browser.py b/dl-downer/src/utils/browser.py index 9d46b7f..2ad9395 100644 --- a/dl-downer/src/utils/browser.py +++ b/dl-downer/src/utils/browser.py @@ -38,7 +38,8 @@ def create_playwright_page(platform: DLRequestPlatform) -> tuple[Playwright, Bro ''' playwright = sync_playwright().start() - browser = playwright.chromium.launch( + engine = playwright.webkit if platform == DLRequestPlatform.VTMGO else playwright.chromium + browser = engine.launch( headless=os.getenv('HEADLESS', 'true') == 'true', slow_mo=200, )