logo

youtube-dl

[mirror] Download/Watch videos from video hosters
commit: 2adedc477ee4c87709ca8d1c9bdfac3c31b1a57b
parent 898238e9f82e29ef139ff934f6949ddf574bd4d8
Author: Gary <35942108+LameLemon@users.noreply.github.com>
Date:   Mon, 15 Jul 2019 18:53:20 +0300

[gfycat] Extend _VALID_URL (closes #21779) (#21780)


Diffstat:

Myoutube_dl/extractor/gfycat.py5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/youtube_dl/extractor/gfycat.py b/youtube_dl/extractor/gfycat.py @@ -11,7 +11,7 @@ from ..utils import ( class GfycatIE(InfoExtractor): - _VALID_URL = r'https?://(?:www\.)?gfycat\.com/(?:ifr/|gifs/detail/)?(?P<id>[^-/?#]+)' + _VALID_URL = r'https?://(?:www\.)?gfycat\.com/(?:ru/|ifr/|gifs/detail/)?(?P<id>[^-/?#]+)' _TESTS = [{ 'url': 'http://gfycat.com/DeadlyDecisiveGermanpinscher', 'info_dict': { @@ -45,6 +45,9 @@ class GfycatIE(InfoExtractor): 'age_limit': 0, } }, { + 'url': 'https://gfycat.com/ru/RemarkableDrearyAmurstarfish', + 'only_matching': True + }, { 'url': 'https://gfycat.com/gifs/detail/UnconsciousLankyIvorygull', 'only_matching': True }, {