[discord] do not match message URLs as channels (#7059)

This commit is contained in:
Mike Fährmann
2025-02-26 21:11:59 +01:00
parent afde4ad343
commit 4a3db15fc4

View File

@@ -233,7 +233,7 @@ class DiscordExtractor(Extractor):
class DiscordChannelExtractor(DiscordExtractor):
subcategory = "channel"
pattern = BASE_PATTERN + r"/channels/(\d+)/(?:\d+/threads/)?(\d+)"
pattern = BASE_PATTERN + r"/channels/(\d+)/(?:\d+/threads/)?(\d+)/?$"
example = "https://discord.com/channels/1234567890/9876543210"
def items(self):