mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-22 02:15:12 +00:00
[youtube] Remove useless if
This commit is contained in:
parent
6d1a55a521
commit
785521bf4f
1 changed files with 3 additions and 4 deletions
|
@ -562,10 +562,9 @@ def _extract_signature_function(self, video_id, player_url, example_sig):
|
||||||
else:
|
else:
|
||||||
assert False, 'Invalid player type %r' % player_type
|
assert False, 'Invalid player type %r' % player_type
|
||||||
|
|
||||||
if cache_spec is None:
|
test_string = ''.join(map(compat_chr, range(len(example_sig))))
|
||||||
test_string = ''.join(map(compat_chr, range(len(example_sig))))
|
cache_res = res(test_string)
|
||||||
cache_res = res(test_string)
|
cache_spec = [ord(c) for c in cache_res]
|
||||||
cache_spec = [ord(c) for c in cache_res]
|
|
||||||
|
|
||||||
self._downloader.cache.store('youtube-sigfuncs', func_id, cache_spec)
|
self._downloader.cache.store('youtube-sigfuncs', func_id, cache_spec)
|
||||||
return res
|
return res
|
||||||
|
|
Loading…
Reference in a new issue