1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-09-28 22:35:52 +00:00

[VXXX] Support "friend" site: blackporn.tube

This commit is contained in:
tabjy 2022-10-02 06:27:18 -04:00
parent aaafaa2cb8
commit a6a1c149d6
3 changed files with 46 additions and 1 deletions

View file

@ -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<id>\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'

View file

@ -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

View file

@ -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'],
}
}]