This commit is contained in:
doms9 2025-12-06 00:26:59 -05:00
parent a979f0bf75
commit 00000d97a5
8 changed files with 40 additions and 29 deletions

View file

@ -60,6 +60,8 @@ async def refresh_html_cache(
return {}
pattern = re.compile(r"openEmbed\('([^']+)'\)", re.IGNORECASE)
soup = HTMLParser(r.content)
events = {}
@ -81,8 +83,6 @@ async def refresh_html_cache(
if not embed_btn or not (onclick := embed_btn.attributes.get("onclick")):
continue
pattern = re.compile(r"openEmbed\('([^']+)'\)", re.IGNORECASE)
if not (match := pattern.search(onclick)):
continue