From: Sergey M․ Date: Fri, 10 May 2019 01:36:10 +0000 (+0700) Subject: [youtube] Use sp field value for signature field name (closes #18841, closes #18927... X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=027ffdca0d3174963a4269ce8de8519cfed7a12c;p=youtube-dl [youtube] Use sp field value for signature field name (closes #18841, closes #18927, closes #21028) --- diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py index da202b9bc..8619f3838 100644 --- a/youtube_dl/extractor/youtube.py +++ b/youtube_dl/extractor/youtube.py @@ -1987,7 +1987,8 @@ class YoutubeIE(YoutubeBaseInfoExtractor): signature = self._decrypt_signature( encrypted_sig, video_id, player_url, age_gate) - url += '&signature=' + signature + sp = try_get(url_data, lambda x: x['sp'][0], compat_str) or 'signature' + url += '&%s=%s' % (sp, signature) if 'ratebypass' not in url: url += '&ratebypass=yes'