1
0
mirror of https://github.com/l1ving/youtube-dl synced 2024-12-21 17:12:54 +08:00

[ndr] Improve video url regex (fixes #4140)

This commit is contained in:
Jaime Marquínez Ferrándiz 2014-11-09 11:15:50 +01:00
parent f866e474f3
commit a6dae6c09c

View File

@ -67,7 +67,7 @@ class NDRIE(InfoExtractor):
thumbnail = None
video_url = re.search(r'''3: \{src:'(?P<video>.+?)\.hi\.mp4', type:"video/mp4"},''', page)
video_url = re.search(r'''3: \{src:'(?P<video>.+?)\.(lo|hi|hq)\.mp4', type:"video/mp4"},''', page)
if video_url:
thumbnails = re.findall(r'''\d+: \{src: "([^"]+)"(?: \|\| '[^']+')?, quality: '([^']+)'}''', page)
if thumbnails: