[crunchyroll:beta] Fix extractor after API change (#3801)

Closes #2052
Authored by: Burve, tejing1
This commit is contained in:
Jeff Huffman 2022-05-19 17:37:04 -07:00 committed by GitHub
parent e79969b242
commit 88d62206b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 4 deletions

View File

@ -728,11 +728,12 @@ class CrunchyrollBetaBaseIE(CrunchyrollBaseIE):
headers={
'Authorization': auth_response['token_type'] + ' ' + auth_response['access_token']
})
bucket = policy_response['cms']['bucket']
cms = traverse_obj(policy_response, 'cms_beta', 'cms')
bucket = cms['bucket']
params = {
'Policy': policy_response['cms']['policy'],
'Signature': policy_response['cms']['signature'],
'Key-Pair-Id': policy_response['cms']['key_pair_id']
'Policy': cms['policy'],
'Signature': cms['signature'],
'Key-Pair-Id': cms['key_pair_id']
}
locale = traverse_obj(initial_state, ('localization', 'locale'))
if locale: