]>
jfr.im git - yt-dlp.git/blob - yt_dlp/extractor/thisav.py
1 from .common
import InfoExtractor
2 from ..utils
import remove_end
5 class ThisAVIE(InfoExtractor
):
6 _VALID_URL
= r
'https?://(?:www\.)?thisav\.com/video/(?P<id>[0-9]+)/.*'
9 'url': 'http://www.thisav.com/video/47734/%98%26sup1%3B%83%9E%83%82---just-fit.html',
10 'md5': '0480f1ef3932d901f0e0e719f188f19b',
14 'title': '高樹マリア - Just fit',
16 'uploader_id': 'dj7970'
20 'url': 'http://www.thisav.com/video/242352/nerdy-18yo-big-ass-tattoos-and-glasses.html',
21 'md5': 'ba90c076bd0f80203679e5b60bf523ee',
25 'title': 'Nerdy 18yo Big Ass Tattoos and Glasses',
26 'uploader': 'cybersluts',
27 'uploader_id': 'cybersluts',
31 def _real_extract(self
, url
):
32 mobj
= self
._match
_valid
_url
(url
)
34 video_id
= mobj
.group('id')
35 webpage
= self
._download
_webpage
(url
, video_id
)
36 title
= remove_end(self
._html
_extract
_title
(webpage
), ' - 視頻 - ThisAV.com-世界第一中文成人娛樂網站')
37 video_url
= self
._html
_search
_regex
(
38 r
"addVariable\('file','([^']+)'\);", webpage
, 'video url', default
=None)
46 entries
= self
._parse
_html
5_media
_entries
(url
, webpage
, video_id
)
48 info_dict
= entries
[0]
50 info_dict
= self
._extract
_jwplayer
_data
(
51 webpage
, video_id
, require_title
=False)
52 uploader
= self
._html
_search
_regex
(
53 r
': <a href="http://www\.thisav\.com/user/[0-9]+/(?:[^"]+)">([^<]+)</a>',
54 webpage
, 'uploader name', fatal
=False)
55 uploader_id
= self
._html
_search
_regex
(
56 r
': <a href="http://www\.thisav\.com/user/[0-9]+/([^"]+)">(?:[^<]+)</a>',
57 webpage
, 'uploader id', fatal
=False)
62 'uploader_id': uploader_id
,