diff --git a/youtube_dl/extractor/blackporntube.py b/youtube_dl/extractor/blackporntube.py new file mode 100644 index 000000000..0cdff8233 --- /dev/null +++ b/youtube_dl/extractor/blackporntube.py @@ -0,0 +1,43 @@ +# coding: utf-8 +from __future__ import unicode_literals + +from .vxxx import VXXXIE + + +class BlackPornTubeIE(VXXXIE): + _VALID_URL = r'https?://blackporn\.tube/video/(?P\d+)' + _TESTS = [{ + 'url': 'https://blackporn.tube/video/10043813/young-ebony-babe-gets-super-wet/', + 'md5': 'f5c2652f686e66d453f6fede3bdba054', + 'info_dict': { + 'id': '10043813', + 'ext': 'mp4', + 'title': 'Young Ebony Babe Gets Super Wet', + 'display_id': 'young-ebony-babe-gets-super-wet', + 'thumbnail': 'https://tn.blackporn.tube/contents/videos_screenshots/10043000/10043813/480x270/1.jpg', + 'description': '', + 'timestamp': 1654806141, + 'upload_date': '20220609', + 'duration': 193.0, + 'categories': ['BDSM', 'Bondage', 'Celebrity', 'Ebony', 'Fetish', + 'Shibari Bondage', 'Solo Female', + 'Tattoo'] + } + }] + + def _download_info_object(self, video_id): + return self._download_json( + 'https://blackporn.tube/api/json/video/86400/0/{}/{}.json'.format( + int(video_id) // 1000 * 1000, + video_id, + ), video_id, headers={'Referer': 'https://blackporn.tube'})['video'] + + def _download_format_object(self, video_id): + return self._download_json( + 'https://blackporn.tube/api/videofile.php?video_id={}'.format(video_id), + video_id, + headers={'Referer': 'https://blackporn.tube'} + ) + + def _get_video_host(self): + return 'blackporn.tube' diff --git a/youtube_dl/extractor/extractors.py b/youtube_dl/extractor/extractors.py index e797c76ec..f06fdf60a 100644 --- a/youtube_dl/extractor/extractors.py +++ b/youtube_dl/extractor/extractors.py @@ -139,6 +139,7 @@ from .bleacherreport import ( BleacherReportIE, BleacherReportCMSIE, ) +from .blackporntube import BlackPornTubeIE from .bloomberg import BloombergIE from .bokecc import BokeCCIE from .bongacams import BongaCamsIE diff --git a/youtube_dl/extractor/xmilf.py b/youtube_dl/extractor/xmilf.py index 74c193437..a85788bb0 100644 --- a/youtube_dl/extractor/xmilf.py +++ b/youtube_dl/extractor/xmilf.py @@ -19,7 +19,8 @@ class XMilfIE(VXXXIE): 'timestamp': 1662465481, 'upload_date': '20220906', 'duration': 480.0, - 'categories': ['Amateur', 'Big Tits', 'Brunette', 'Fetish', 'HD', 'Lingerie', 'MILF', 'Webcam'], + 'categories': ['Amateur', 'Big Tits', 'Brunette', 'Fetish', 'HD', + 'Lingerie', 'MILF', 'Webcam'], } }]