Skip to content

Commit

Permalink
fix: use webkit for vtmgo (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
BelgianNoise authored Jun 28, 2024
1 parent 974f1f2 commit c520be9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dl-downer/src/utils/browser.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)
Expand Down

0 comments on commit c520be9

Please sign in to comment.