From: Thorsten Date: Thu, 29 Jul 2021 17:11:50 +0000 (+0200) Subject: fix stupid X-Git-Url: https://git.aero2k.de/?a=commitdiff_plain;h=ab7460fc790c4d6641596eebdebe101e4ebaf36d;p=urlbot-v3.git fix stupid --- diff --git a/distbot/plugins/url.py b/distbot/plugins/url.py index 802dee2..2897ef0 100644 --- a/distbot/plugins/url.py +++ b/distbot/plugins/url.py @@ -96,8 +96,10 @@ class URLResolver(Worker): logger.info('url blacklist match for ' + url) break # brackets aren't allowed anyways... and repeatedly used. - if url.endswith(')'): - url = url.rstrip(')') + # commonly_appended_invalid_character + for stupid in (":", '"', "'", ",", ")"): + if url.endswith(stupid): + url = url.rstrip(stupid) try: title = extract_title(url) except UnicodeError as e: