[redgifs] match gfycat image URLs (#4558)
This commit is contained in:
@@ -177,6 +177,7 @@ class RedgifsImageExtractor(RedgifsExtractor):
|
|||||||
subcategory = "image"
|
subcategory = "image"
|
||||||
pattern = (r"(?:https?://)?(?:"
|
pattern = (r"(?:https?://)?(?:"
|
||||||
r"(?:\w+\.)?redgifs\.com/(?:watch|ifr)|"
|
r"(?:\w+\.)?redgifs\.com/(?:watch|ifr)|"
|
||||||
|
r"(?:\w+\.)?gfycat\.com(?:/gifs/detail|/\w+)?|"
|
||||||
r"(?:www\.)?gifdeliverynetwork\.com|"
|
r"(?:www\.)?gifdeliverynetwork\.com|"
|
||||||
r"i\.redgifs\.com/i)/([A-Za-z]+)")
|
r"i\.redgifs\.com/i)/([A-Za-z]+)")
|
||||||
example = "https://redgifs.com/watch/ID"
|
example = "https://redgifs.com/watch/ID"
|
||||||
|
|||||||
@@ -149,4 +149,10 @@ __tests__ = (
|
|||||||
"#class" : redgifs.RedgifsImageExtractor,
|
"#class" : redgifs.RedgifsImageExtractor,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
"#url" : "https://www.gfycat.com/foolishforkedabyssiniancat",
|
||||||
|
"#category": ("", "redgifs", "image"),
|
||||||
|
"#class" : redgifs.RedgifsImageExtractor,
|
||||||
|
},
|
||||||
|
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user