Update thisav.py

updated regex
This commit is contained in:
mogu1121 2018-02-07 02:10:24 +08:00 committed by GitHub
parent fde677fed4
commit 1585a0a6d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -42,11 +42,11 @@ class ThisAVIE(InfoExtractor):
r'<title>([^<]+)</title>', webpage, 'title'), r'<title>([^<]+)</title>', webpage, 'title'),
' - 視頻 - ThisAV.com-世界第一中文成人娛樂網站') ' - 視頻 - ThisAV.com-世界第一中文成人娛樂網站')
video_url = self._html_search_regex( video_url = self._html_search_regex(
r"addVariable\('file','([^']+)'\);", webpage, 'video url', default=None) r"source src=.(https?:\/\/.+\d+(_high|_low)?)", webpage, 'video url', default=None)
if video_url: if video_url:
info_dict = { info_dict = {
'formats': [{ 'formats': [{
'url': video_url, 'url': video_url + '_dashinit.mp4',
}], }],
} }
else: else: