aboutsummaryrefslogtreecommitdiffstats
path: root/hypervideo_dl/extractor/xvideos.py
diff options
context:
space:
mode:
authorJesus <heckyel@riseup.net>2023-09-04 01:59:36 +0800
committerJesus <heckyel@riseup.net>2023-09-04 01:59:36 +0800
commitb3013540b41d1eb77c4803c5fca46f8d75b40fc1 (patch)
tree97735cb0c49f3a2b0f276e1cd90817833d590d69 /hypervideo_dl/extractor/xvideos.py
parenteaeeef9c1d1bedb76fea953c332ef84d53bffe2c (diff)
downloadhypervideo-b3013540b41d1eb77c4803c5fca46f8d75b40fc1.tar.lz
hypervideo-b3013540b41d1eb77c4803c5fca46f8d75b40fc1.tar.xz
hypervideo-b3013540b41d1eb77c4803c5fca46f8d75b40fc1.zip
update from upstream
Diffstat (limited to 'hypervideo_dl/extractor/xvideos.py')
-rw-r--r--hypervideo_dl/extractor/xvideos.py21
1 files changed, 21 insertions, 0 deletions
diff --git a/hypervideo_dl/extractor/xvideos.py b/hypervideo_dl/extractor/xvideos.py
index 5c505c8..5df0715 100644
--- a/hypervideo_dl/extractor/xvideos.py
+++ b/hypervideo_dl/extractor/xvideos.py
@@ -157,3 +157,24 @@ class XVideosIE(InfoExtractor):
'thumbnails': thumbnails,
'age_limit': 18,
}
+
+
+class XVideosQuickiesIE(InfoExtractor):
+ IE_NAME = 'xvideos:quickies'
+ _VALID_URL = r'https?://(?P<domain>(?:[^/]+\.)?xvideos2?\.com)/amateur-channels/[^#]+#quickies/a/(?P<id>\d+)'
+ _TESTS = [{
+ 'url': 'https://www.xvideos.com/amateur-channels/wifeluna#quickies/a/47258683',
+ 'md5': '16e322a93282667f1963915568f782c1',
+ 'info_dict': {
+ 'id': '47258683',
+ 'ext': 'mp4',
+ 'title': 'Verification video',
+ 'age_limit': 18,
+ 'duration': 16,
+ 'thumbnail': r're:^https://cdn.*-pic.xvideos-cdn.com/.+\.jpg',
+ }
+ }]
+
+ def _real_extract(self, url):
+ domain, id_ = self._match_valid_url(url).group('domain', 'id')
+ return self.url_result(f'https://{domain}/video{id_}/_', XVideosIE, id_)