mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-23 02:25:11 +00:00
[gfycat] Updated tests.
This commit is contained in:
parent
afe4a8c769
commit
4aec95f3c9
1 changed files with 33 additions and 25 deletions
|
@ -8,7 +8,8 @@
|
|||
|
||||
class GfycatIE(InfoExtractor):
|
||||
_VALID_URL = r'https?://(?:www\.)?gfycat\.com/(?P<id>[^/?#]+)'
|
||||
_TESTS = [{
|
||||
_TESTS = [
|
||||
{
|
||||
'url': 'http://gfycat.com/DeadlyDecisiveGermanpinscher',
|
||||
'info_dict': {
|
||||
'id': 'DeadlyDecisiveGermanpinscher',
|
||||
|
@ -23,16 +24,23 @@ class GfycatIE(InfoExtractor):
|
|||
'title': 'PleasingHilariousKusimanse',
|
||||
'ext': 'webm',
|
||||
'upload_date': '20150412'
|
||||
}
|
||||
},
|
||||
'params': {
|
||||
'format': 'webm',
|
||||
},
|
||||
},{
|
||||
'url': 'http://gfycat.com/requiredunkemptbuzzard',
|
||||
'info_dict': {
|
||||
'id': 'requiredunkemptbuzzard',
|
||||
'title': 'Headshot!',
|
||||
'ext': 'gif',
|
||||
'upload_date': '20150130'
|
||||
}
|
||||
}]
|
||||
'upload_date': '20150129'
|
||||
},
|
||||
'params': {
|
||||
'format': 'gif',
|
||||
},
|
||||
},
|
||||
]
|
||||
|
||||
def _real_extract(self, url):
|
||||
video_id = self._match_id(url)
|
||||
|
|
Loading…
Reference in a new issue