anilife update 2022.10.23(01.)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user