1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-07-03 17:19:33 +00:00

[VXXX] Support "friend" site: xmilf.com

This commit is contained in:
tabjy 2022-10-02 06:17:24 -04:00
parent ba4c5b3a2e
commit aaafaa2cb8
2 changed files with 42 additions and 0 deletions

View file

@ -1580,6 +1580,7 @@ from .ximalaya import (
XimalayaAlbumIE XimalayaAlbumIE
) )
from .xminus import XMinusIE from .xminus import XMinusIE
from .xmilf import XMilfIE
from .xnxx import XNXXIE from .xnxx import XNXXIE
from .xstream import XstreamIE from .xstream import XstreamIE
from .xtube import XTubeUserIE, XTubeIE from .xtube import XTubeUserIE, XTubeIE

View file

@ -0,0 +1,41 @@
# coding: utf-8
from __future__ import unicode_literals
from .vxxx import VXXXIE
class XMilfIE(VXXXIE):
_VALID_URL = r'https?://xmilf\.com/video/(?P<id>\d+)'
_TESTS = [{
'url': 'https://xmilf.com/video/143777/big-boob-brunette-masturbates3/',
'md5': 'a93d43a83042cb6e42103053d981de81',
'info_dict': {
'id': '143777',
'ext': 'mp4',
'title': 'Big Boob Brunette Masturbates',
'display_id': 'big-boob-brunette-masturbates3',
'thumbnail': 'https://tn.xmilf.com/contents/videos_screenshots/143000/143777/480x270/1.jpg',
'description': '',
'timestamp': 1662465481,
'upload_date': '20220906',
'duration': 480.0,
'categories': ['Amateur', 'Big Tits', 'Brunette', 'Fetish', 'HD', 'Lingerie', 'MILF', 'Webcam'],
}
}]
def _download_info_object(self, video_id):
return self._download_json(
'https://xmilf.com/api/json/video/86400/0/{}/{}.json'.format(
int(video_id) // 1000 * 1000,
video_id,
), video_id, headers={'Referer': 'https://xmilf.com'})['video']
def _download_format_object(self, video_id):
return self._download_json(
'https://xmilf.com/api/videofile.php?video_id={}'.format(video_id),
video_id,
headers={'Referer': 'https://xmilf.com'}
)
def _get_video_host(self):
return 'xmilf.com'