[youtube] Remove useless if

pull/8/head
Philipp Hagemeister 2015-02-18 10:42:23 +01:00
rodzic 6d1a55a521
commit 785521bf4f
1 zmienionych plików z 3 dodań i 4 usunięć

Wyświetl plik

@ -562,10 +562,9 @@ class YoutubeIE(YoutubeBaseInfoExtractor, SubtitlesInfoExtractor):
else:
assert False, 'Invalid player type %r' % player_type
if cache_spec is None:
test_string = ''.join(map(compat_chr, range(len(example_sig))))
cache_res = res(test_string)
cache_spec = [ord(c) for c in cache_res]
test_string = ''.join(map(compat_chr, range(len(example_sig))))
cache_res = res(test_string)
cache_spec = [ord(c) for c in cache_res]
self._downloader.cache.store('youtube-sigfuncs', func_id, cache_spec)
return res