[youtube] fix 403 forbidden error
youtube has new 'sp' paramter in url_data which gives signature param name that server is expecting for the signature param value in url
This commit is contained in:
parent
379306ef55
commit
924d479fd8
@ -1886,7 +1886,10 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
|
|||||||
|
|
||||||
signature = self._decrypt_signature(
|
signature = self._decrypt_signature(
|
||||||
encrypted_sig, video_id, player_url, age_gate)
|
encrypted_sig, video_id, player_url, age_gate)
|
||||||
url += '&signature=' + signature
|
if 'sp' in url_data:
|
||||||
|
url += '&' + url_data['sp'][0] + '=' + signature
|
||||||
|
else:
|
||||||
|
url += '&signature=' + signature
|
||||||
if 'ratebypass' not in url:
|
if 'ratebypass' not in url:
|
||||||
url += '&ratebypass=yes'
|
url += '&ratebypass=yes'
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user