ytdl-org / youtube-dl

Command-line program to download videos from YouTube.com and other video sites
http://ytdl-org.github.io/youtube-dl/
The Unlicense
132.37k stars 10.04k forks source link

youtube: ERROR: Signature extraction failed: #13135

Closed ghost closed 7 years ago

ghost commented 7 years ago

Please follow the guide below


Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2017.05.18. If it's not read this FAQ entry and update. Issues with outdated version will be rejected.

Before submitting an issue make sure you have:

What is the purpose of your issue?


The following sections concretize particular purposed issues, you can erase any section (the contents between triple ---) not applicable to your issue


If the purpose of this issue is a bug report, site support request or you are not completely sure provide the full verbose output as follows:

Add -v flag to your command line you run youtube-dl with, copy the whole output and insert it here. It should look similar to one below (replace it with your log inserted between triple ```):

$ youtube-dl -v <your command line>
[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'-v', u'http://www.youtube.com/watch?v=BaW_jenozKcj']
[debug] Encodings: locale cp1251, fs mbcs, out cp866, pref cp1251
[debug] youtube-dl version 2017.05.18
[debug] Python version 2.7.11 - Windows-2003Server-5.2.3790-SP2
[debug] exe versions: ffmpeg N-75573-g1d0487f, ffprobe N-75573-g1d0487f, rtmpdump 2.4
[debug] Proxy map: {}
...
<end of log>

If the purpose of this issue is a site support request please provide all kinds of example URLs support for which should be included (replace following example URLs by yours):

Note that youtube-dl does not support sites dedicated to copyright infringement. In order for site support request to be accepted all provided example URLs should not violate any copyrights.


Description of your issue, suggested solution and other information

Explanation of your issue in arbitrary form goes here. Please make sure the description is worded well enough to be understood. Provide as much context and examples as possible. If work on your issue requires account credentials please provide them or explain how one can obtain them.

Download fails, with:

m@streamradio:~$ youtube-dl --verbose --prefer-insecure -g -f"best" http://youtube.com/watch?v=MEalp2_wyuA [debug] System config: [] [debug] User config: [] [debug] Custom config: [] [debug] Command-line args: [u'--verbose', u'--prefer-insecure', u'-g', u'-fbest', u'http://youtube.com/watch?v=MEalp2_wyuA'] [debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8 [debug] youtube-dl version 2017.05.18 [debug] Python version 2.7.3 - Linux-3.2.0-64-virtual-x86_64-with-Ubuntu-12.04-precise [debug] exe versions: avconv v12_dev0-355-g28396d1, avprobe v12_dev0-355-g28396d1, ffmpeg 0.8.17-4, ffprobe 0.8.17-4, rtmpdump 2.4 [debug] Proxy map: {} ERROR: Signature extraction failed: Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/youtube_dl/extractor/youtube.py", line 1162, in _decrypt_signature video_id, player_url, s File "/usr/local/lib/python2.7/dist-packages/youtube_dl/extractor/youtube.py", line 1085, in _extract_signature_function cache_res = res(test_string) File "/usr/local/lib/python2.7/dist-packages/youtube_dl/extractor/youtube.py", line 1138, in return lambda s: initial_function([s]) File "/usr/local/lib/python2.7/dist-packages/youtube_dl/jsinterp.py", line 255, in resf res, abort = self.interpret_statement(stmt, local_vars) File "/usr/local/lib/python2.7/dist-packages/youtube_dl/jsinterp.py", line 56, in interpret_statement v = self.interpret_expression(expr, local_vars, allow_recursion) File "/usr/local/lib/python2.7/dist-packages/youtube_dl/jsinterp.py", line 143, in interpret_expression self._objects[variable] = self.extract_object(variable) File "/usr/local/lib/python2.7/dist-packages/youtube_dl/jsinterp.py", line 219, in extract_object r'}\s;' % _FUNC_NAME_RE, TypeError: not all arguments converted during string formatting (caused by TypeError('not all arguments converted during string formatting',)); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see https://yt-dl.org/update on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output. Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/youtube_dl/extractor/youtube.py", line 1162, in _decrypt_signature video_id, player_url, s File "/usr/local/lib/python2.7/dist-packages/youtube_dl/extractor/youtube.py", line 1085, in _extract_signature_function cache_res = res(test_string) File "/usr/local/lib/python2.7/dist-packages/youtube_dl/extractor/youtube.py", line 1138, in return lambda s: initial_function([s]) File "/usr/local/lib/python2.7/dist-packages/youtube_dl/jsinterp.py", line 255, in resf res, abort = self.interpret_statement(stmt, local_vars) File "/usr/local/lib/python2.7/dist-packages/youtube_dl/jsinterp.py", line 56, in interpret_statement v = self.interpret_expression(expr, local_vars, allow_recursion) File "/usr/local/lib/python2.7/dist-packages/youtube_dl/jsinterp.py", line 143, in interpret_expression self._objects[variable] = self.extract_object(variable) File "/usr/local/lib/python2.7/dist-packages/youtube_dl/jsinterp.py", line 219, in extract_object r'}\s;' % _FUNC_NAME_RE, TypeError: not all arguments converted during string formatting Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/youtube_dl/YoutubeDL.py", line 760, in extract_info ie_result = ie.extract(url) File "/usr/local/lib/python2.7/dist-packages/youtube_dl/extractor/common.py", line 433, in extract ie_result = self._real_extract(url) File "/usr/local/lib/python2.7/dist-packages/youtube_dl/extractor/youtube.py", line 1755, in _real_extract encrypted_sig, video_id, player_url, age_gate) File "/usr/local/lib/python2.7/dist-packages/youtube_dl/extractor/youtube.py", line 1172, in _decrypt_signature 'Signature extraction failed: ' + tb, cause=e) ExtractorError: Signature extraction failed: Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/youtube_dl/extractor/youtube.py", line 1162, in _decrypt_signature video_id, player_url, s File "/usr/local/lib/python2.7/dist-packages/youtube_dl/extractor/youtube.py", line 1085, in _extract_signature_function cache_res = res(test_string) File "/usr/local/lib/python2.7/dist-packages/youtube_dl/extractor/youtube.py", line 1138, in return lambda s: initial_function([s]) File "/usr/local/lib/python2.7/dist-packages/youtube_dl/jsinterp.py", line 255, in resf res, abort = self.interpret_statement(stmt, local_vars) File "/usr/local/lib/python2.7/dist-packages/youtube_dl/jsinterp.py", line 56, in interpret_statement v = self.interpret_expression(expr, local_vars, allow_recursion) File "/usr/local/lib/python2.7/dist-packages/youtube_dl/jsinterp.py", line 143, in interpret_expression self._objects[variable] = self.extract_object(variable) File "/usr/local/lib/python2.7/dist-packages/youtube_dl/jsinterp.py", line 219, in extract_object r'}\s*;' % _FUNC_NAME_RE, TypeError: not all arguments converted during string formatting (caused by TypeError('not all arguments converted during string formatting',)); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see https://yt-dl.org/update on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.

raju249 commented 7 years ago

Same issue. Updated to new just now.