[redgifs] match gfycat image URLs (#4558)

This commit is contained in:
Mike Fährmann
2023-09-22 18:02:55 +02:00
parent 2ad75bab05
commit 918ba4f847
2 changed files with 7 additions and 0 deletions

View File

@@ -177,6 +177,7 @@ class RedgifsImageExtractor(RedgifsExtractor):
subcategory = "image"
pattern = (r"(?:https?://)?(?:"
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]+)")
example = "https://redgifs.com/watch/ID"

View File

@@ -149,4 +149,10 @@ __tests__ = (
"#class" : redgifs.RedgifsImageExtractor,
},
{
"#url" : "https://www.gfycat.com/foolishforkedabyssiniancat",
"#category": ("", "redgifs", "image"),
"#class" : redgifs.RedgifsImageExtractor,
},
)