]>
jfr.im git - yt-dlp.git/blob - yt_dlp/extractor/goshgay.py
1 from .common
import InfoExtractor
10 class GoshgayIE(InfoExtractor
):
11 _VALID_URL
= r
'https?://(?:www\.)?goshgay\.com/video(?P<id>\d+?)($|/)'
13 'url': 'http://www.goshgay.com/video299069/diesel_sfw_xxx_video',
14 'md5': '4b6db9a0a333142eb9f15913142b0ed1',
18 'title': 'DIESEL SFW XXX Video',
19 'thumbnail': r
're:^http://.*\.jpg$',
25 def _real_extract(self
, url
):
26 video_id
= self
._match
_id
(url
)
27 webpage
= self
._download
_webpage
(url
, video_id
)
29 title
= self
._html
_search
_regex
(
30 r
'<h2>(.*?)<', webpage
, 'title')
31 duration
= parse_duration(self
._html
_search
_regex
(
32 r
'<span class="duration">\s*-?\s*(.*?)</span>',
33 webpage
, 'duration', fatal
=False))
35 flashvars
= compat_parse_qs(self
._html
_search
_regex
(
36 r
'<embed.+?id="flash-player-embed".+?flashvars="([^"]+)"',
37 webpage
, 'flashvars'))
38 thumbnail
= flashvars
.get('url_bigthumb', [None])[0]
39 video_url
= flashvars
['flv_url'][0]
45 'thumbnail': thumbnail
,