1
0
Fork 0
mirror of https://gitlab.com/dstftw/youtube-dl.git synced 2020-11-16 09:42:26 +00:00

[youtube] Fix reference before assignment for video_info

This commit is contained in:
Sergey M․ 2015-06-27 13:19:46 +06:00
parent d80265ccd6
commit bc93bdb5bb

View file

@ -883,6 +883,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
add_dash_mpd(video_info)
else:
age_gate = False
video_info = None
# Try looking directly into the video webpage
mobj = re.search(r';ytplayer\.config\s*=\s*({.*?});', video_webpage)
if mobj: