Extraction: Fix mistake with age-restriction detection

This commit is contained in:
James Taylor 2019-12-17 21:06:06 -08:00
parent 45a4ab5ace
commit e98a1965d2

View File

@ -1185,7 +1185,7 @@ def extract_watch_info(polymer_json):
extract_playability_error(info, player_response) extract_playability_error(info, player_response)
# check age-restriction # 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) # base_js (for decryption of signatures)
info['base_js'] = default_multi_get(top_level, 'player', 'assets', 'js') info['base_js'] = default_multi_get(top_level, 'player', 'assets', 'js')