From 92a8be2ebf1dccc8d54782d3e5f433755d17adfe Mon Sep 17 00:00:00 2001 From: JChris246 <43832407+JChris246@users.noreply.github.com> Date: Wed, 23 Jan 2019 16:44:51 -0400 Subject: [PATCH] Added test --- youtube_dl/extractor/yourporn.py | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/youtube_dl/extractor/yourporn.py b/youtube_dl/extractor/yourporn.py index b37561602..f2ac24152 100644 --- a/youtube_dl/extractor/yourporn.py +++ b/youtube_dl/extractor/yourporn.py @@ -6,7 +6,7 @@ from ..utils import urljoin class YourPornIE(InfoExtractor): _VALID_URL = r'https?://(?:www\.)?yourporn\.sexy/post/(?P[^/?#&.]+)' - _TEST = { + _TESTS = [{ 'url': 'https://yourporn.sexy/post/57ffcb2e1179b.html', 'md5': '6f8682b6464033d87acaa7a8ff0c092e', 'info_dict': { @@ -16,7 +16,19 @@ class YourPornIE(InfoExtractor): 'thumbnail': r're:^https?://.*\.jpg$', '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): video_id = self._match_id(url)