Fix broken signature decryption
The base.js url format changed, so the identifier at the end was no longer unique. So it was using the wrong cached decryption function Changes the identifier to just be the whole url so this won't happen again.
This commit is contained in:
parent
85db7e46ed
commit
bdac6a2302
@ -458,7 +458,8 @@ def extract_watch_info(polymer_json):
|
|||||||
info['base_js'] = deep_get(top_level, 'player', 'assets', 'js')
|
info['base_js'] = deep_get(top_level, 'player', 'assets', 'js')
|
||||||
if info['base_js']:
|
if info['base_js']:
|
||||||
info['base_js'] = normalize_url(info['base_js'])
|
info['base_js'] = normalize_url(info['base_js'])
|
||||||
info['player_name'] = get(info['base_js'].split('/'), -2)
|
# must uniquely identify url
|
||||||
|
info['player_name'] = urllib.parse.urlparse(info['base_js']).path
|
||||||
else:
|
else:
|
||||||
info['player_name'] = None
|
info['player_name'] = None
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user