1
0
mirror of https://github.com/l1ving/youtube-dl synced 2025-03-13 07:37:18 +08:00

[thisav] Fix regex

This commit is contained in:
ryucc 2017-01-18 14:25:43 -06:00
parent f1e70fc2ff
commit 10ff1630e8

View File

@ -41,6 +41,11 @@ class ThisAVIE(JWPlatformBaseIE):
' - 視頻 - ThisAV.com-世界第一中文成人娛樂網站')
video_url = self._html_search_regex(
r"addVariable\('file','([^']+)'\);", webpage, 'video url', default=None)
if not video_url:
video_url = self._html_search_regex(
r"<source type='video/mp4' src=\"([^'<>\"]+)\">"
, webpage, 'video url', default=None)
if video_url:
info_dict = {
'formats': [{