This website works better with JavaScript.
Home
Help
Sign In
zolfa
/
youtube-dl
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
1.1k
Wiki
Activity
Browse Source
[youtube] Fix reference before assignment for video_info
totalwebcasting
Sergey M․
9 years ago
parent
d80265ccd6
commit
bc93bdb5bb
1 changed files
with
1 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-0
youtube_dl/extractor/youtube.py
+ 1
- 0
youtube_dl/extractor/youtube.py
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
:
Write
Preview
Loading…
Cancel
Save