]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[youtube] Fix reference before assignment for video_info
authorSergey M․ <dstftw@gmail.com>
Sat, 27 Jun 2015 07:19:46 +0000 (13:19 +0600)
committerSergey M․ <dstftw@gmail.com>
Sat, 27 Jun 2015 07:19:46 +0000 (13:19 +0600)
youtube_dl/extractor/youtube.py

index 46841617a44c85d9e7f4b2541f5c6d36829e388b..45e5cb80eec501579e4e795ea5f05a16b9f8cbea 100644 (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: