mirror of
https://github.com/mikf/gallery-dl.git
synced 2024-11-22 02:32:33 +01:00
merge #4755: [twitter] recognize fixupx.com URLs
This commit is contained in:
commit
43a3d93467
@ -15,7 +15,8 @@ import itertools
|
||||
import json
|
||||
import re
|
||||
|
||||
BASE_PATTERN = r"(?:https?://)?(?:www\.|mobile\.)?(?:(?:[fv]x)?twitter|x)\.com"
|
||||
BASE_PATTERN = (r"(?:https?://)?(?:www\.|mobile\.)?"
|
||||
r"(?:(?:[fv]x)?twitter|(?:fixup)?x)\.com")
|
||||
|
||||
|
||||
class TwitterExtractor(Extractor):
|
||||
|
@ -54,6 +54,12 @@ __tests__ = (
|
||||
"#class" : twitter.TwitterUserExtractor,
|
||||
},
|
||||
|
||||
{
|
||||
"#url" : "https://fixupx.com/supernaturepics",
|
||||
"#category": ("", "twitter", "user"),
|
||||
"#class" : twitter.TwitterUserExtractor,
|
||||
},
|
||||
|
||||
{
|
||||
"#url" : "https://x.com/supernaturepics",
|
||||
"#category": ("", "twitter", "user"),
|
||||
|
Loading…
Reference in New Issue
Block a user