Skip to content

Commit

Permalink
[discord] do not match message URLs as channels (#7059)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikf committed Feb 26, 2025
1 parent afde4ad commit 4a3db15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gallery_dl/extractor/discord.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ def build_server_and_channels(self, server_id):

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):
Expand Down

0 comments on commit 4a3db15

Please sign in to comment.