mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-11-16 23:35:45 +00:00
[VXXX] Switch to HSL for much faster downloads
This commit is contained in:
parent
9c5c778792
commit
1e522505be
6 changed files with 12 additions and 22 deletions
|
@ -8,7 +8,7 @@ class BdsmxTubeIE(VXXXIE):
|
||||||
_VALID_URL = r'https?://bdsmx\.tube/video/(?P<id>\d+)'
|
_VALID_URL = r'https?://bdsmx\.tube/video/(?P<id>\d+)'
|
||||||
_TESTS = [{
|
_TESTS = [{
|
||||||
'url': 'https://bdsmx.tube/video/127583/latex-puppy-leashed/',
|
'url': 'https://bdsmx.tube/video/127583/latex-puppy-leashed/',
|
||||||
'md5': '06b6000c19207cb068bc0009f243345d',
|
'md5': '79751d4ed75668afe07a660c4bcb2f1b',
|
||||||
'info_dict': {
|
'info_dict': {
|
||||||
'id': '127583',
|
'id': '127583',
|
||||||
'ext': 'mp4',
|
'ext': 'mp4',
|
||||||
|
|
|
@ -8,7 +8,7 @@ class BlackPornTubeIE(VXXXIE):
|
||||||
_VALID_URL = r'https?://blackporn\.tube/video/(?P<id>\d+)'
|
_VALID_URL = r'https?://blackporn\.tube/video/(?P<id>\d+)'
|
||||||
_TESTS = [{
|
_TESTS = [{
|
||||||
'url': 'https://blackporn.tube/video/10043813/young-ebony-babe-gets-super-wet/',
|
'url': 'https://blackporn.tube/video/10043813/young-ebony-babe-gets-super-wet/',
|
||||||
'md5': 'f5c2652f686e66d453f6fede3bdba054',
|
'md5': '4a4c126970f2f1453b8b2050947fc870',
|
||||||
'info_dict': {
|
'info_dict': {
|
||||||
'id': '10043813',
|
'id': '10043813',
|
||||||
'ext': 'mp4',
|
'ext': 'mp4',
|
||||||
|
|
|
@ -8,7 +8,7 @@ class InPornIE(VXXXIE):
|
||||||
_VALID_URL = r'https?://(?:www\.)?inporn\.com/video/(?P<id>\d+)'
|
_VALID_URL = r'https?://(?:www\.)?inporn\.com/video/(?P<id>\d+)'
|
||||||
_TESTS = [{
|
_TESTS = [{
|
||||||
'url': 'https://inporn.com/video/533613/2k-t-2nd-season-parm-151/',
|
'url': 'https://inporn.com/video/533613/2k-t-2nd-season-parm-151/',
|
||||||
'md5': '111e5c4680b1fa5995144e101c521a4f',
|
'md5': 'c358d1da6b451ebe7cfb00dd89741607',
|
||||||
'info_dict': {
|
'info_dict': {
|
||||||
'id': '533613',
|
'id': '533613',
|
||||||
'ext': 'mp4',
|
'ext': 'mp4',
|
||||||
|
|
|
@ -8,7 +8,7 @@ class MrGayIE(VXXXIE):
|
||||||
_VALID_URL = r'https?://mrgay\.com/video/(?P<id>\d+)'
|
_VALID_URL = r'https?://mrgay\.com/video/(?P<id>\d+)'
|
||||||
_TESTS = [{
|
_TESTS = [{
|
||||||
'url': 'https://mrgay.com/video/10169199/jpn-crossdresser-6/',
|
'url': 'https://mrgay.com/video/10169199/jpn-crossdresser-6/',
|
||||||
'md5': 'b2ff401f8a168007702f3f5cbecd7bc2',
|
'md5': 'b5780a9437c205b4bc87eb939b23e8ef',
|
||||||
'info_dict': {
|
'info_dict': {
|
||||||
'id': '10169199',
|
'id': '10169199',
|
||||||
'ext': 'mp4',
|
'ext': 'mp4',
|
||||||
|
|
|
@ -12,7 +12,7 @@ class VXXXIE(InfoExtractor):
|
||||||
_VALID_URL = r'https?://vxxx\.com/video-(?P<id>\d+)'
|
_VALID_URL = r'https?://vxxx\.com/video-(?P<id>\d+)'
|
||||||
_TESTS = [{
|
_TESTS = [{
|
||||||
'url': 'https://vxxx.com/video-80747/',
|
'url': 'https://vxxx.com/video-80747/',
|
||||||
'md5': '4736e868b0e008b4ff9dc09585c26c52',
|
'md5': '2f4bfd829b682ff9e3da1bda71b81b81',
|
||||||
'info_dict': {
|
'info_dict': {
|
||||||
'id': '80747',
|
'id': '80747',
|
||||||
'ext': 'mp4',
|
'ext': 'mp4',
|
||||||
|
@ -89,26 +89,16 @@ class VXXXIE(InfoExtractor):
|
||||||
'formats': None
|
'formats': None
|
||||||
}
|
}
|
||||||
|
|
||||||
qualities = {
|
|
||||||
'_fhd.mp4': -1, # 1080p
|
|
||||||
'_hd.mp4': -2, # 720p
|
|
||||||
'_hq.mp4': -2, # 720p
|
|
||||||
'_sd.mp4': -3, # 480p
|
|
||||||
'_lq.mp4': -3 # 480p
|
|
||||||
}
|
|
||||||
|
|
||||||
format_object = self._download_format_object(video_id)
|
format_object = self._download_format_object(video_id)
|
||||||
formats = list(map(lambda f: {
|
m3u8_formats = self._extract_m3u8_formats(
|
||||||
'url': "https://{}{}".format(
|
"https://{}{}&f=video.m3u8".format(
|
||||||
self._get_video_host(),
|
self._get_video_host(),
|
||||||
self._decode_base164(f['video_url'])
|
self._decode_base164(format_object[0]['video_url'])
|
||||||
),
|
),
|
||||||
'format_id': f['format'],
|
video_id, 'mp4')
|
||||||
'quality': qualities.get(f['format'], -1)
|
self._sort_formats(m3u8_formats)
|
||||||
}, format_object))
|
info['formats'] = m3u8_formats
|
||||||
self._sort_formats(formats)
|
|
||||||
|
|
||||||
info['formats'] = formats
|
|
||||||
return info
|
return info
|
||||||
|
|
||||||
def _real_extract(self, url):
|
def _real_extract(self, url):
|
||||||
|
|
|
@ -8,7 +8,7 @@ class XMilfIE(VXXXIE):
|
||||||
_VALID_URL = r'https?://xmilf\.com/video/(?P<id>\d+)'
|
_VALID_URL = r'https?://xmilf\.com/video/(?P<id>\d+)'
|
||||||
_TESTS = [{
|
_TESTS = [{
|
||||||
'url': 'https://xmilf.com/video/143777/big-boob-brunette-masturbates3/',
|
'url': 'https://xmilf.com/video/143777/big-boob-brunette-masturbates3/',
|
||||||
'md5': 'a93d43a83042cb6e42103053d981de81',
|
'md5': 'a196fe8daebe194a758754c81e9232ad',
|
||||||
'info_dict': {
|
'info_dict': {
|
||||||
'id': '143777',
|
'id': '143777',
|
||||||
'ext': 'mp4',
|
'ext': 'mp4',
|
||||||
|
|
Loading…
Reference in a new issue