1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-22 02:32:33 +01:00

[twitter] match '/photo/' Tweet URLs (#5443)

fixes regression introduced in 40c05535
This commit is contained in:
Mike Fährmann 2024-04-06 17:56:21 +02:00
parent 3346a377b3
commit 647a87d17c
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88
2 changed files with 9 additions and 1 deletions

View File

@ -741,7 +741,8 @@ class TwitterEventExtractor(TwitterExtractor):
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+)"
r"/?(?:$|\?|#|photo/)")
example = "https://twitter.com/USER/status/12345"
def __init__(self, match):

View File

@ -526,6 +526,13 @@ Youll be able to receive four Galarian form Pokémon with Hidden Abilities, p
"#count" : 5,
},
{
"#url" : "https://twitter.com/supernaturepics/status/604341487988576256/photo/1",
"#comment" : "/photo/ URL (#5443)",
"#category": ("", "twitter", "tweet"),
"#class" : twitter.TwitterTweetExtractor,
},
{
"#url" : "https://twitter.com/morino_ya/status/1392763691599237121",
"#comment" : "retweet with missing media entities (#1555)",