mirror of
https://codeberg.org/polarisfm/youtube-dl
synced 2024-11-22 16:44:32 +01:00
YoutubeIE: some encrypted signatures have more than two parts, print the size of all the parts
This commit is contained in:
parent
1bb9568776
commit
5a76c6517e
@ -591,8 +591,9 @@ class YoutubeIE(InfoExtractor):
|
|||||||
else:
|
else:
|
||||||
player = u'html5 player %s' % self._search_regex(r'html5player-(.+?)\.js', video_webpage,
|
player = u'html5 player %s' % self._search_regex(r'html5player-(.+?)\.js', video_webpage,
|
||||||
'html5 player', fatal=False)
|
'html5 player', fatal=False)
|
||||||
self.to_screen('encrypted signature length %d (%d.%d), itag %s, %s' %
|
parts_sizes = u'.'.join(compat_str(len(part)) for part in s.split('.'))
|
||||||
(len(s), len(s.split('.')[0]), len(s.split('.')[1]), url_data['itag'][0], player))
|
self.to_screen(u'encrypted signature length %d (%s), itag %s, %s' %
|
||||||
|
(len(s), parts_sizes, url_data['itag'][0], player))
|
||||||
signature = self._decrypt_signature(url_data['s'][0])
|
signature = self._decrypt_signature(url_data['s'][0])
|
||||||
url += '&signature=' + signature
|
url += '&signature=' + signature
|
||||||
if 'ratebypass' not in url:
|
if 'ratebypass' not in url:
|
||||||
|
Loading…
Reference in New Issue
Block a user