]>
Raphaƫl G. Git Repositories - youtubedl/blob - youtube_dl/extractor/pornhd.py
e9ff8d1af893c8e22830bbfd41d37b56d5815c9a
3 from .common
import InfoExtractor
4 from ..utils
import compat_urllib_parse
7 class PornHdIE(InfoExtractor
):
8 _VALID_URL
= r
'(?:http://)?(?:www\.)?pornhd\.com/(?:[a-z]{2,4}/)?videos/(?P<video_id>[0-9]+)/(?P<video_title>.+)'
10 u
'url': u
'http://www.pornhd.com/videos/1962/sierra-day-gets-his-cum-all-over-herself-hd-porn-video',
12 u
'md5': u
'35272469887dca97abd30abecc6cdf75',
14 u
"title": u
"sierra-day-gets-his-cum-all-over-herself-hd-porn-video",
19 def _real_extract(self
, url
):
20 mobj
= re
.match(self
._VALID
_URL
, url
)
22 video_id
= mobj
.group('video_id')
23 video_title
= mobj
.group('video_title')
25 webpage
= self
._download
_webpage
(url
, video_id
)
27 video_url
= self
._html
_search
_regex
(
28 r
'&hd=(http.+?)&', webpage
, u
'video URL')
29 video_url
= compat_urllib_parse
.unquote(video_url
)
37 'age_limit': age_limit
,