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

merge #5899: [redgifs] support URLs with numeric IDs (#5898)

This commit is contained in:
Mike Fährmann 2024-07-28 12:35:57 +02:00
commit 65d7cccaf9
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88
2 changed files with 9 additions and 1 deletions

View File

@ -190,7 +190,7 @@ class RedgifsImageExtractor(RedgifsExtractor):
r"(?:\w+\.)?redgifs\.com/(?:watch|ifr)|"
r"(?:\w+\.)?gfycat\.com(?:/gifs/detail|/\w+)?|"
r"(?:www\.)?gifdeliverynetwork\.com|"
r"i\.redgifs\.com/i)/([A-Za-z]+)")
r"i\.redgifs\.com/i)/([A-Za-z0-9]+)")
example = "https://redgifs.com/watch/ID"
def gifs(self):

View File

@ -165,6 +165,14 @@ __tests__ = (
"#class" : redgifs.RedgifsImageExtractor,
},
{
"#url" : "https://v3.redgifs.com/watch/605025947780972895",
"#category": ("", "redgifs", "image"),
"#class" : redgifs.RedgifsImageExtractor,
"id": "humblegrippingmole",
},
{
"#url" : "https://www.gfycat.com/foolishforkedabyssiniancat",
"#category": ("", "redgifs", "image"),