From ab7460fc790c4d6641596eebdebe101e4ebaf36d Mon Sep 17 00:00:00 2001
From: Thorsten <mail@aero2k.de>
Date: Thu, 29 Jul 2021 19:11:50 +0200
Subject: [PATCH] fix stupid

---
 distbot/plugins/url.py | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

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:
-- 
2.39.5