From: Sergey M․ Date: Sat, 27 Jun 2015 07:19:46 +0000 (+0600) Subject: [youtube] Fix reference before assignment for video_info X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=bc93bdb5bbf48b121977a5088ab9607f0fbeb83e;p=youtube-dl [youtube] Fix reference before assignment for video_info --- diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py index 46841617a..45e5cb80e 100644 --- a/youtube_dl/extractor/youtube.py +++ b/youtube_dl/extractor/youtube.py @@ -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: