mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-03 02:03:23 +01:00
[youtube] Fix bug (Closes https://github.com/pukkandan/yt-dlc/issues/10)
This commit is contained in:
parent
e8273c86a3
commit
62d80ba17c
@ -1686,11 +1686,12 @@ def extract_embedded_config(embed_webpage, video_id):
|
||||
if embedded_config:
|
||||
return embedded_config
|
||||
|
||||
video_info = {}
|
||||
player_response = {}
|
||||
ytplayer_config = None
|
||||
embed_webpage = None
|
||||
|
||||
# Get video info
|
||||
video_info = {}
|
||||
embed_webpage = None
|
||||
if (self._og_search_property('restrictions:age', video_webpage, default=None) == '18+'
|
||||
or re.search(r'player-age-gate-content">', video_webpage) is not None):
|
||||
cookie_keys = self._get_cookies('https://www.youtube.com').keys()
|
||||
|
Loading…
Reference in New Issue
Block a user