]> git.aero2k.de Git - urlbot-v3.git/commitdiff
fix youtube urls being "resolved" master
authorThorsten <mail@aero2k.de>
Sun, 3 May 2026 09:18:06 +0000 (11:18 +0200)
committerThorsten <mail@aero2k.de>
Sun, 3 May 2026 09:18:06 +0000 (11:18 +0200)
src/distbot/plugins/url.py

index dae31d4b78d840e75824f630fcff954fb2bb371d..4de60ad36c9400745dc33515074a732f5468d6b9 100644 (file)
@@ -89,7 +89,7 @@ class URLResolver(Worker):
 
         out = []
         for url in result[:10]:
 
         out = []
         for url in result[:10]:
-            if "https://youtu" in url:
+            if "https://youtu" in url or "https://www.youtu" in url:
                 # does not work, another plugins does the job.
                 continue
             if any([re.match(b, url) for b in url_blacklist]):
                 # does not work, another plugins does the job.
                 continue
             if any([re.match(b, url) for b in url_blacklist]):