projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d80265c
)
[youtube] Fix reference before assignment for video_info
author
Sergey M․
<dstftw@gmail.com>
Sat, 27 Jun 2015 07:19:46 +0000
(13:19 +0600)
committer
Sergey M․
<dstftw@gmail.com>
Sat, 27 Jun 2015 07:19:46 +0000
(13:19 +0600)
youtube_dl/extractor/youtube.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/youtube.py
b/youtube_dl/extractor/youtube.py
index 46841617a44c85d9e7f4b2541f5c6d36829e388b..45e5cb80eec501579e4e795ea5f05a16b9f8cbea 100644
(file)
--- 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: