mirror of
https://codeberg.org/polarisfm/youtube-dl
synced 2024-11-23 00:54:31 +01:00
[wimp] Modernize and replace test
This commit is contained in:
parent
dbb94fb044
commit
da36297988
@ -6,14 +6,15 @@ from .common import InfoExtractor
|
|||||||
|
|
||||||
|
|
||||||
class WimpIE(InfoExtractor):
|
class WimpIE(InfoExtractor):
|
||||||
_VALID_URL = r'(?:http://)?(?:www\.)?wimp\.com/([^/]+)/'
|
_VALID_URL = r'http://(?:www\.)?wimp\.com/([^/]+)/'
|
||||||
_TEST = {
|
_TEST = {
|
||||||
'url': 'http://www.wimp.com/deerfence/',
|
'url': 'http://www.wimp.com/maruexhausted/',
|
||||||
'file': 'deerfence.flv',
|
'md5': 'f1acced123ecb28d9bb79f2479f2b6a1',
|
||||||
'md5': '8b215e2e0168c6081a1cf84b2846a2b5',
|
|
||||||
'info_dict': {
|
'info_dict': {
|
||||||
"title": "Watch Till End: Herd of deer jump over a fence.",
|
'id': 'maruexhausted',
|
||||||
"description": "These deer look as fluid as running water when they jump over this fence as a herd. This video is one that needs to be watched until the very end for the true majesty to be witnessed, but once it comes, it's sure to take your breath away.",
|
'ext': 'flv',
|
||||||
|
'title': 'Maru is exhausted.',
|
||||||
|
'description': 'md5:57e099e857c0a4ea312542b684a869b8',
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -30,4 +31,4 @@ class WimpIE(InfoExtractor):
|
|||||||
'title': self._og_search_title(webpage),
|
'title': self._og_search_title(webpage),
|
||||||
'thumbnail': self._og_search_thumbnail(webpage),
|
'thumbnail': self._og_search_thumbnail(webpage),
|
||||||
'description': self._og_search_description(webpage),
|
'description': self._og_search_description(webpage),
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user