1
0
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:
Mike Fährmann 2023-11-02 15:33:29 +01:00
commit 43a3d93467
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88
2 changed files with 8 additions and 1 deletions

View File

@ -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):

View File

@ -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"),