From f033c96878e641bc891599b9df3b7e575d481bb9 Mon Sep 17 00:00:00 2001 From: projectdx Date: Sun, 23 Oct 2022 22:51:55 +0900 Subject: [PATCH] anilife update 2022.10.23(01.) --- logic_anilife.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/logic_anilife.py b/logic_anilife.py index 11b9149..7b636ee 100644 --- a/logic_anilife.py +++ b/logic_anilife.py @@ -402,8 +402,8 @@ class LogicAniLife(LogicModuleBase): "--disable-accelerated-2d-canvas", "--no-first-run", "--no-zygote", - "--single-process", - "--disable-gpu", + # "--single-process", + # "--disable-gpu", "--use-gl=egl", "--disable-blink-features=AutomationControlled", "--disable-background-networking", @@ -440,6 +440,7 @@ class LogicAniLife(LogicModuleBase): # from playwright_stealth import stealth_sync async with async_playwright() as p: + # browser = await p.chromium.launch(headless=headless, args=browser_args) browser = await p.chromium.launch(headless=headless, args=browser_args) # browser = await p.webkit.launch(headless=headless) @@ -1194,7 +1195,7 @@ class AniLifeQueueEntity(FfmpegQueueEntity): os.makedirs(self.savepath) vod_1080p_url = asyncio.run( - LogicAniLife.get_vod_url(jawcloud_url, headless=False) + LogicAniLife.get_vod_url(jawcloud_url, headless=True) ) print(f"vod_1080p_url:: {vod_1080p_url}") self.url = vod_1080p_url