mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-12-26 13:15:51 +01:00
[youtube] Fix reference before assignment for video_info
This commit is contained in:
parent
d80265ccd6
commit
bc93bdb5bb
@ -883,6 +883,7 @@ def add_dash_mpd(video_info):
|
|||||||
add_dash_mpd(video_info)
|
add_dash_mpd(video_info)
|
||||||
else:
|
else:
|
||||||
age_gate = False
|
age_gate = False
|
||||||
|
video_info = None
|
||||||
# Try looking directly into the video webpage
|
# Try looking directly into the video webpage
|
||||||
mobj = re.search(r';ytplayer\.config\s*=\s*({.*?});', video_webpage)
|
mobj = re.search(r';ytplayer\.config\s*=\s*({.*?});', video_webpage)
|
||||||
if mobj:
|
if mobj:
|
||||||
|
Loading…
Reference in New Issue
Block a user