]>
jfr.im git - yt-dlp.git/blob - yt_dlp/extractor/peekvids.py
1 from .common
import InfoExtractor
4 class PeekVidsIE(InfoExtractor
):
6 https?://(?:www\.)?peekvids\.com/
7 (?:(?:[^/?#]+/){2}|embed/?\?(?:[^#]*&)?v=)
11 'url': 'https://peekvids.com/pc/dane-jones-cute-redhead-with-perfect-tits-with-mini-vamp/BSyLMbN0YCd',
12 'md5': 'a00940646c428e232407e3e62f0e8ef5',
15 'title': ' Dane Jones - Cute redhead with perfect tits with Mini Vamp, SEXYhub',
17 'thumbnail': r
're:^https?://.*\.jpg$',
18 'description': 'Watch Dane Jones - Cute redhead with perfect tits with Mini Vamp (7 min), uploaded by SEXYhub.com',
19 'timestamp': 1642579329,
20 'upload_date': '20220119',
26 _DOMAIN
= 'www.peekvids.com'
28 def _real_extract(self
, url
):
29 video_id
= self
._match
_id
(url
)
30 webpage
= self
._download
_webpage
(url
, video_id
)
32 short_video_id
= self
._html
_search
_regex
(r
'<video [^>]*data-id="(.+?)"', webpage
, 'short video ID')
33 srcs
= self
._download
_json
(
34 f
'https://{self._DOMAIN}/v-alt/{short_video_id}', video_id
,
35 note
='Downloading list of source files')
39 'format_id': name
[8:],
40 } for name
, url
in srcs
.items() if len(name
) > 8 and name
.startswith('data-src')]
42 formats
= [{'url': url}
for url
in srcs
.values()]
43 self
._sort
_formats
(formats
)
45 info
= self
._search
_json
_ld
(webpage
, video_id
, expected_type
='VideoObject')
54 class PlayVidsIE(PeekVidsIE
): # XXX: Do not subclass from concrete IE
55 _VALID_URL
= r
'https?://(?:www\.)?playvids\.com/(?:embed/|[^/]{2}/)?(?P<id>[^/?#]*)'
57 'url': 'https://www.playvids.com/U3pBrYhsjXM/pc/dane-jones-cute-redhead-with-perfect-tits-with-mini-vamp',
58 'md5': 'cd7dfd8a2e815a45402369c76e3c1825',
61 'title': ' Dane Jones - Cute redhead with perfect tits with Mini Vamp, SEXYhub',
63 'thumbnail': r
're:^https?://.*\.jpg$',
64 'description': 'Watch Dane Jones - Cute redhead with perfect tits with Mini Vamp video in HD, uploaded by SEXYhub.com',
65 'timestamp': 1640435839,
66 'upload_date': '20211225',
72 'url': 'https://www.playvids.com/es/U3pBrYhsjXM/pc/dane-jones-cute-redhead-with-perfect-tits-with-mini-vamp',
73 'only_matching': True,
75 'url': 'https://www.playvids.com/embed/U3pBrYhsjXM',
76 'only_matching': True,
78 _DOMAIN
= 'www.playvids.com'