aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--youtube/yt_data_extract.py2
1 files changed, 1 insertions, 1 deletions
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')