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:
parent
3346a377b3
commit
647a87d17c
@ -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):
|
||||
|
@ -526,6 +526,13 @@ You’ll 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)",
|
||||
|
Loading…
Reference in New Issue
Block a user