aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2015-02-18 10:42:23 +0100
committerPhilipp Hagemeister <phihag@phihag.de>2015-02-18 10:42:23 +0100
commit785521bf4fbd99b2916bdab5d847d84424196c1d (patch)
tree391a79a63bc0223b78ae567a7c5b31ff41aeb066
parent6d1a55a521b524dd0c562e3855f81434afb6f807 (diff)
downloadyoutube-dl-785521bf4fbd99b2916bdab5d847d84424196c1d.tar.xz
[youtube] Remove useless if
-rw-r--r--youtube_dl/extractor/youtube.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py
index 2c02da2b7..3d3d43491 100644
--- a/youtube_dl/extractor/youtube.py
+++ b/youtube_dl/extractor/youtube.py
@@ -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