]>
jfr.im git - yt-dlp.git/blob - yt_dlp/extractor/peekvids.py
62050a8e4264589769a158e885bc2f8e91faac7e
2 from __future__
import unicode_literals
4 from .common
import InfoExtractor
5 from ..utils
import remove_end
8 class PeekVidsIE(InfoExtractor
):
10 https?://(?:www\.)?peekvids\.com/
11 (?:(?:[^/?#]+/){2}|embed/?\?(?:[^#]*&)?v=)
15 'url': 'https://peekvids.com/pc/dane-jones-cute-redhead-with-perfect-tits-with-mini-vamp/BSyLMbN0YCd',
16 'md5': '2ff6a357a9717dc9dc9894b51307e9a2',
20 'title': 'Dane Jones - Cute redhead with perfect tits with Mini Vamp',
24 _DOMAIN
= 'www.peekvids.com'
26 def _real_extract(self
, url
):
27 video_id
= self
._match
_id
(url
)
28 webpage
= self
._download
_webpage
(url
, video_id
)
30 short_video_id
= self
._html
_search
_regex
(r
'<video [^>]*data-id="(.+?)"', webpage
, 'short video ID')
31 srcs
= self
._download
_json
(
32 f
'https://{self._DOMAIN}/v-alt/{short_video_id}', video_id
,
33 note
='Downloading list of source files')
37 'format_id': name
[8:],
38 } for name
, url
in srcs
.items() if len(name
) > 8 and name
.startswith('data-src')]
40 formats
= [{'url': url}
for url
in srcs
.values()]
41 self
._sort
_formats
(formats
)
43 title
= remove_end(self
._html
_search
_regex
(
44 (r
'<h1.*?>\s*(.+?)\s*</h1>', r
'<title>\s*(.+?)\s*</title>'),
45 webpage
, 'video title', default
=None), ' - PeekVids')
55 class PlayVidsIE(PeekVidsIE
):
56 _VALID_URL
= r
'https?://(?:www\.)?playvids\.com/(?:embed/|[^/]{2}/)?(?P<id>[^/?#]*)'
58 'url': 'https://www.playvids.com/U3pBrYhsjXM/pc/dane-jones-cute-redhead-with-perfect-tits-with-mini-vamp',
59 'md5': '2f12e50213dd65f142175da633c4564c',
63 'title': 'Dane Jones - Cute redhead with perfect tits with Mini Vamp',
67 'url': 'https://www.playvids.com/es/U3pBrYhsjXM/pc/dane-jones-cute-redhead-with-perfect-tits-with-mini-vamp',
68 'md5': '2f12e50213dd65f142175da633c4564c',
72 'title': 'Dane Jones - Cute redhead with perfect tits with Mini Vamp',
76 'url': 'https://www.playvids.com/embed/U3pBrYhsjXM',
77 'md5': '2f12e50213dd65f142175da633c4564c',
81 'title': 'U3pBrYhsjXM',
85 _DOMAIN
= 'www.playvids.com'