Skip to content

Commit

Permalink
[twitter] fix pattern for single tweet (mikf#5371)
Browse files Browse the repository at this point in the history
  • Loading branch information
fireattack authored Mar 25, 2024
1 parent c3bafd6 commit e6ea731
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gallery_dl/extractor/twitter.py
Original file line number Diff line number Diff line change
Expand Up @@ -736,7 +736,7 @@ def tweets(self):
class TwitterTweetExtractor(TwitterExtractor):
"""Extractor for individual tweets"""
subcategory = "tweet"
pattern = BASE_PATTERN + r"/([^/?#]+|i/web)/status/(\d+)/?$"
pattern = BASE_PATTERN + r"/([^/?#]+|i/web)/status/(\d+)(?:$|[?#])"
example = "https://twitter.com/USER/status/12345"

def __init__(self, match):
Expand Down

0 comments on commit e6ea731

Please sign in to comment.