aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/gfycat.py
diff options
context:
space:
mode:
authorbiwubo <45994985+biwubo@users.noreply.github.com>2019-05-10 20:12:45 +0100
committerSergey M <dstftw@gmail.com>2019-05-11 02:12:45 +0700
commit68b92aa1b476d3d5cdd98fe11b211171753b712c (patch)
tree91aaa81f04049d15ab7fca60785d5a12c91eb39a /youtube_dl/extractor/gfycat.py
parentfd35d8cdfdc77ca6ec6d87677fe0d00df0cbb22a (diff)
[gfycat] Add support for URLs with tags (closes #20696) (#20731)
Diffstat (limited to 'youtube_dl/extractor/gfycat.py')
-rw-r--r--youtube_dl/extractor/gfycat.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/youtube_dl/extractor/gfycat.py b/youtube_dl/extractor/gfycat.py
index c1b36a59b..eb6f85836 100644
--- 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/(?:ifr/|gifs/detail/)?(?P<id>[^-/?#]+)'
_TESTS = [{
'url': 'http://gfycat.com/DeadlyDecisiveGermanpinscher',
'info_dict': {
@@ -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):