Skip to content

Commit

Permalink
[gfycat] Add support for URLs with tags (closes #20696) (#20731)
Browse files Browse the repository at this point in the history
  • Loading branch information
biwubo authored and Sergey M committed May 10, 2019
1 parent fd35d8c commit 68b92aa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion youtube_dl/extractor/gfycat.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@


class GfycatIE(InfoExtractor):
_VALID_URL = r'https?://(?:www\.)?gfycat\.com/(?:ifr/|gifs/detail/)?(?P<id>[^/?#]+)'
_VALID_URL = r'https?://(?:www\.)?gfycat\.com/(?:ifr/|gifs/detail/)?(?P<id>[^-/?#]+)'
_TESTS = [{
'url': 'http://gfycat.com/DeadlyDecisiveGermanpinscher',
'info_dict': {
Expand Down Expand Up @@ -47,6 +47,9 @@ class GfycatIE(InfoExtractor):
}, {
'url': 'https://gfycat.com/gifs/detail/UnconsciousLankyIvorygull',
'only_matching': True
}, {
'url': 'https://gfycat.com/acceptablehappygoluckyharborporpoise-baseball',
'only_matching': True
}]

def _real_extract(self, url):
Expand Down

0 comments on commit 68b92aa

Please sign in to comment.