anilife update 2022.10.23(01.)
This commit is contained in:
@@ -402,8 +402,8 @@ class LogicAniLife(LogicModuleBase):
|
|||||||
"--disable-accelerated-2d-canvas",
|
"--disable-accelerated-2d-canvas",
|
||||||
"--no-first-run",
|
"--no-first-run",
|
||||||
"--no-zygote",
|
"--no-zygote",
|
||||||
"--single-process",
|
# "--single-process",
|
||||||
"--disable-gpu",
|
# "--disable-gpu",
|
||||||
"--use-gl=egl",
|
"--use-gl=egl",
|
||||||
"--disable-blink-features=AutomationControlled",
|
"--disable-blink-features=AutomationControlled",
|
||||||
"--disable-background-networking",
|
"--disable-background-networking",
|
||||||
@@ -440,6 +440,7 @@ class LogicAniLife(LogicModuleBase):
|
|||||||
# from playwright_stealth import stealth_sync
|
# from playwright_stealth import stealth_sync
|
||||||
|
|
||||||
async with async_playwright() as p:
|
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.chromium.launch(headless=headless, args=browser_args)
|
||||||
|
|
||||||
# browser = await p.webkit.launch(headless=headless)
|
# browser = await p.webkit.launch(headless=headless)
|
||||||
@@ -1194,7 +1195,7 @@ class AniLifeQueueEntity(FfmpegQueueEntity):
|
|||||||
os.makedirs(self.savepath)
|
os.makedirs(self.savepath)
|
||||||
|
|
||||||
vod_1080p_url = asyncio.run(
|
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}")
|
print(f"vod_1080p_url:: {vod_1080p_url}")
|
||||||
self.url = vod_1080p_url
|
self.url = vod_1080p_url
|
||||||
|
|||||||
Reference in New Issue
Block a user