fix for worker timeout

remotes/1693176582716663532/tmp_refs/heads/watchparty
justcool393 2022-11-11 03:49:43 -06:00
parent 0c7eab0def
commit 0cf37cfe5f
2 changed files with 2 additions and 3 deletions

View File

@ -116,7 +116,7 @@ pronouns_regex = re.compile("([a-z]{1,5})/[a-z]{1,5}(/[a-z]{1,5})?", flags=re.A|
knowledgebase_page_regex = re.compile("[a-zA-Z0-9_\-]+", flags=re.A)
html_title_regex = re.compile("<title>(.{1,200})</title>", flags=re.A|re.I)
html_title_regex = re.compile("<title>(.{1,200})</title>", flags=re.I)
def sub_matcher(match:re.Match, upper=False, replace_with:Union[dict[str, str], dict[str, List[str]]]=SLURS):
group_num = 0

View File

@ -1083,7 +1083,6 @@ def get_post_title(v):
match = html_title_regex.match(x.text)
if match and match.lastindex >= 1:
title = match.group(1)
if not title: abort(400)
else: abort(400)
return {"url": url, "title": title.string}