merge #5601: [twitter] match '/video/' Tweet URLs

This commit is contained in:
Mike Fährmann
2024-05-17 22:49:12 +02:00
2 changed files with 8 additions and 1 deletions

View File

@@ -749,7 +749,7 @@ class TwitterTweetExtractor(TwitterExtractor):
"""Extractor for individual tweets"""
subcategory = "tweet"
pattern = (BASE_PATTERN + r"/([^/?#]+|i/web)/status/(\d+)"
r"/?(?:$|\?|#|photo/)")
r"/?(?:$|\?|#|photo/|video/)")
example = "https://twitter.com/USER/status/12345"
def __init__(self, match):