A feature-rich command-line audio/video downloader
Correct test strings
Philipp Hagemeisterc705320f485c
diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.pyindex 780690ed02..049da2f913 100644--- a/youtube_dl/extractor/youtube.py+++ b/youtube_dl/extractor/youtube.py@@ -468,7 +468,8 @@ class YoutubeIE(YoutubeBaseInfoExtractor, SubtitlesInfoExtractor):if cache_enabled:try:- cache_res = res(map(compat_chr, range(slen)))+ test_string = u''.join(map(compat_chr, range(slen)))+ cache_res = res(test_string)cache_spec = [ord(c) for c in cache_res]try:os.makedirs(os.path.dirname(cache_fn))@@ -512,7 +513,8 @@ class YoutubeIE(YoutubeBaseInfoExtractor, SubtitlesInfoExtractor):else:yield _genslice(start, i, step)- cache_res = func(map(compat_chr, range(slen)))+ test_string = u''.join(map(compat_chr, range(slen)))+ cache_res = func(test_string)cache_spec = [ord(c) for c in cache_res]expr_code = u' + '.join(gen_sig_code(cache_spec))code = u'if len(s) == %d:\n return %s\n' % (slen, expr_code)