forked from rDrama/rDrama
fix for worker timeout
parent
0c7eab0def
commit
0cf37cfe5f
|
@ -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
|
||||
|
|
|
@ -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}
|
||||
|
|
Loading…
Reference in New Issue