Added test

This commit is contained in:
JChris246 2019-01-23 16:44:51 -04:00 committed by GitHub
parent fb106c2091
commit 92a8be2ebf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,7 +6,7 @@ from ..utils import urljoin
class YourPornIE(InfoExtractor): class YourPornIE(InfoExtractor):
_VALID_URL = r'https?://(?:www\.)?yourporn\.sexy/post/(?P<id>[^/?#&.]+)' _VALID_URL = r'https?://(?:www\.)?yourporn\.sexy/post/(?P<id>[^/?#&.]+)'
_TEST = { _TESTS = [{
'url': 'https://yourporn.sexy/post/57ffcb2e1179b.html', 'url': 'https://yourporn.sexy/post/57ffcb2e1179b.html',
'md5': '6f8682b6464033d87acaa7a8ff0c092e', 'md5': '6f8682b6464033d87acaa7a8ff0c092e',
'info_dict': { 'info_dict': {
@ -16,7 +16,19 @@ class YourPornIE(InfoExtractor):
'thumbnail': r're:^https?://.*\.jpg$', 'thumbnail': r're:^https?://.*\.jpg$',
'age_limit': 18 'age_limit': 18
}, },
} }, {
'url': 'https://yourporn.sexy/post/5c2d2fde03bc5.html',
'md5': '3b2323fb429d3f559a11b3f22f4754af',
'info_dict': {
'id': '5c2d2fde03bc5',
'ext': 'mp4',
'title': 'Busty 7 - Nubile Films (2018) - Chanel Preston, '
+ 'Crystal Swift, Jennifer Amton, Shay Evan',
'thumbnail': r're:^https?://.*\.jpg$',
'age_limit': 18,
'duration': 5403
}
}]
def _real_extract(self, url): def _real_extract(self, url):
video_id = self._match_id(url) video_id = self._match_id(url)