Aevann 2023-08-06 09:57:35 +03:00
parent dc5ba70a1f
commit 53855fa080
1 changed files with 2 additions and 2 deletions

View File

@ -667,7 +667,7 @@ def filter_emojis_only(title, golden=True, count_emojis=False, graceful=False):
def is_whitelisted(domain, k): def is_whitelisted(domain, k):
if 'sort' in k.lower() or 'query' in k.lower(): if 'sort' in k.lower() or 'query' in k.lower():
return True return True
if k in {'_x_tr_hl','_x_tr_pto','_x_tr_sl','_x_tr_tl','comments','context','f','fbid','format','forum_id','id','lb','list','oldid','p','page','post_id','postid','q','scrollToComments','sp','story_fbid','tab','term','thread_id','threadid','ticket_form_id','time_continue','title','title_no','token','topic','type','u','udca','url','v','vid','viewkey'}: if k in {'_x_tr_hl','_x_tr_pto','_x_tr_sl','_x_tr_tl','after','comments','context','count','f','fbid','format','forum_id','id','lb','list','oldid','p','page','post_id','postid','q','scrollToComments','sp','story_fbid','tab','term','thread_id','threadid','ticket_form_id','time_continue','title','title_no','token','topic','type','u','udca','url','v','vid','viewkey'}:
return True return True
if k == 't' and domain != 'twitter.com': if k == 't' and domain != 'twitter.com':
return True return True
@ -701,7 +701,7 @@ def normalize_url(url):
url = giphy_regex.sub(r'\1.webp', url) url = giphy_regex.sub(r'\1.webp', url)
if not url.startswith('/'): if not url.startswith('/') and not url.startswith('https://rdrama.net') and not url.startswith('https://watchpeopledie.tv'):
parsed_url = urlparse(url) parsed_url = urlparse(url)
domain = parsed_url.netloc domain = parsed_url.netloc
qd = parse_qs(parsed_url.query, keep_blank_values=True) qd = parse_qs(parsed_url.query, keep_blank_values=True)