diff options
author | Sergey M․ <dstftw@gmail.com> | 2015-06-27 13:19:46 +0600 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2015-06-27 13:19:46 +0600 |
commit | bc93bdb5bbf48b121977a5088ab9607f0fbeb83e (patch) | |
tree | 367ccd0d3259bbf93243eadaf6a4277e691a9cf5 /youtube_dl/extractor/youtube.py | |
parent | d80265ccd6ff08ef273d83aff847a457f051071f (diff) |
[youtube] Fix reference before assignment for video_info
Diffstat (limited to 'youtube_dl/extractor/youtube.py')
-rw-r--r-- | youtube_dl/extractor/youtube.py | 1 |
1 files changed, 1 insertions, 0 deletions
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: |