Archived
1
0
Fork 0

Update screenshot_image.py

This commit is contained in:
多羅狼 2024-03-09 12:12:38 +08:00 committed by GitHub
parent 4833fb8501
commit de044a320d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -23,7 +23,7 @@ async def generate_screenshot_v2(page_link, section=None, allow_special_page=Fal
elements_ = elements.copy()
if element and isinstance(element, List):
elements_ += element
if not WebRender.local
if not WebRender.local:
use_local = False
if not section:
if allow_special_page and content_mode:
@ -80,7 +80,7 @@ async def generate_screenshot_v2(page_link, section=None, allow_special_page=Fal
async def generate_screenshot_v1(link, page_link, headers, use_local=True, section=None, allow_special_page=False) -> Union[str, bool]:
if not WebRender.local
if not WebRender.local:
use_local = False
try:
Logger.info('Starting find infobox/section..')