[youtube] Remove useless if

This commit is contained in:
Philipp Hagemeister 2015-02-18 10:42:23 +01:00
parent 6d1a55a521
commit 785521bf4f

View File

@ -562,7 +562,6 @@ 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]