mirror of
https://github.com/mikf/gallery-dl.git
synced 2024-11-22 10:42:34 +01:00
fixes regression introduced in 40c05535
This commit is contained in:
commit
d1d017ab5d
@ -736,7 +736,7 @@ class TwitterEventExtractor(TwitterExtractor):
|
|||||||
class TwitterTweetExtractor(TwitterExtractor):
|
class TwitterTweetExtractor(TwitterExtractor):
|
||||||
"""Extractor for individual tweets"""
|
"""Extractor for individual tweets"""
|
||||||
subcategory = "tweet"
|
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"
|
example = "https://twitter.com/USER/status/12345"
|
||||||
|
|
||||||
def __init__(self, match):
|
def __init__(self, match):
|
||||||
|
@ -316,7 +316,7 @@ __tests__ = (
|
|||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
"#url" : "https://twitter.com/perrypumas/status/1065692031626829824",
|
"#url" : "https://twitter.com/perrypumas/status/1065692031626829824?s=20",
|
||||||
"#comment" : "video",
|
"#comment" : "video",
|
||||||
"#category": ("", "twitter", "tweet"),
|
"#category": ("", "twitter", "tweet"),
|
||||||
"#class" : twitter.TwitterTweetExtractor,
|
"#class" : twitter.TwitterTweetExtractor,
|
||||||
@ -324,7 +324,7 @@ __tests__ = (
|
|||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
"#url" : "https://twitter.com/playpokemon/status/1263832915173048321",
|
"#url" : "https://twitter.com/playpokemon/status/1263832915173048321/",
|
||||||
"#comment" : "content with emoji, newlines, hashtags (#338)",
|
"#comment" : "content with emoji, newlines, hashtags (#338)",
|
||||||
"#category": ("", "twitter", "tweet"),
|
"#category": ("", "twitter", "tweet"),
|
||||||
"#class" : twitter.TwitterTweetExtractor,
|
"#class" : twitter.TwitterTweetExtractor,
|
||||||
|
Loading…
Reference in New Issue
Block a user