From e98a1965d2cfca725d8d30a4807e816036b60c0b Mon Sep 17 00:00:00 2001 From: James Taylor Date: Tue, 17 Dec 2019 21:06:06 -0800 Subject: Extraction: Fix mistake with age-restriction detection --- youtube/yt_data_extract.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube/yt_data_extract.py b/youtube/yt_data_extract.py index c7a6604..653a79f 100644 --- a/youtube/yt_data_extract.py +++ b/youtube/yt_data_extract.py @@ -1185,7 +1185,7 @@ def extract_watch_info(polymer_json): extract_playability_error(info, player_response) # check age-restriction - info['age_restricted'] = (info['playability_status'] == 'LOGIN_REQUIRED' and info['playability_reason'] and ' age' in info['playability_reason']) + info['age_restricted'] = (info['playability_status'] == 'LOGIN_REQUIRED' and info['playability_error'] and ' age' in info['playability_error']) # base_js (for decryption of signatures) info['base_js'] = default_multi_get(top_level, 'player', 'assets', 'js') -- cgit v1.2.3