[gfycat] extend URL pattern

pull/133/head
Mike Fährmann 6 years ago
parent 2fa28a2609
commit bd8670d925
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

@ -44,7 +44,7 @@ class GfycatImageExtractor(GfycatExtractor):
"""Extractor for individual images from gfycat.com"""
subcategory = "image"
pattern = [r"(?:https?://)?(?:\w+\.)?gfycat\.com"
r"/(?:(?:gifs/)?detail/|ifr/)?([A-Za-z]+)"]
r"/(?:\w+/|gifs/detail/)?([A-Za-z]+)"]
test = [
("https://gfycat.com/GrayGenerousCowrie", {
"url": "e0b5e1d7223108249b15c3c7898dd358dbfae045",
@ -73,6 +73,7 @@ class GfycatImageExtractor(GfycatExtractor):
}),
("https://gfycat.com/gifs/detail/UnequaledHastyAnkole", None),
("https://gfycat.com/ifr/UnequaledHastyAnkole", None),
("https://gfycat.com/ru/UnequaledHastyAnkole", None),
]
def __init__(self, match):

Loading…
Cancel
Save