root@kaos:/home/keos# pip install --upgrade youtube-dl
Collecting youtube-dl
Downloading https://files.pythonhosted.org/packages/6c/a4/c2e3fbd8b9c7ccbca3f220c4fb0914926669bf9080fb8f2f4db4811706be/youtube_dl-2018.11.7-py2.py3-none-any.whl (1.8MB)
100% |████████████████████████████████| 1.8MB 337kB/s
Installing collected packages: youtube-dl
Successfully installed youtube-dl-2018.11.7
root@kaos:/home/keos# youtube-dl https://www.youtube.com/watch?v=i3JPUobdDm8
[youtube] i3JPUobdDm8: Downloading webpage
[youtube] i3JPUobdDm8: Downloading video info webpage
[youtube] i3JPUobdDm8: Downloading js player vfls4aurX
WARNING: Requested formats are incompatible for merge and will be merged into mkv.
[download] Destination: Avril Lavigne - Head Above Water (Sub Español - Ingles)-i3JPUobdDm8.f137.mp4
[download] 100% of 27.75MiB in 00:20
[download] Destination: Avril Lavigne - Head Above Water (Sub Español - Ingles)-i3JPUobdDm8.f251.webm
[download] 100% of 3.57MiB in 00:02
[ffmpeg] Merging formats into "Avril Lavigne - Head Above Water (Sub Español - Ingles)-i3JPUobdDm8.mkv"
Deleting original file Avril Lavigne - Head Above Water (Sub Español - Ingles)-i3JPUobdDm8.f137.mp4 (pass -k to keep)
Deleting original file Avril Lavigne - Head Above Water (Sub Español - Ingles)-i3JPUobdDm8.f251.webm (pass -k to keep)
root@kaos:/home/keos#
Thanks!!
]]>youtube-dl https://www.youtube.com/watch?v=i3JPUobdDm8
And received the error. I then updated my youtube-dl:
pip install --upgrade youtube-dl
Then tried the download again and it worked fine.
]]>This needs to be installed once, to install pip:
apt-get install python-pip
Then run this command to upgrade youtube-dl, and also run this command when you get the "ERROR: Signature extraction failed:" error in the future
pip install --upgrade youtube-dl
root@kaos:/home/keos# youtube-dl https://www.youtube.com/watch?v=i3JPUobdDm8
[youtube] i3JPUobdDm8: Downloading webpage
[youtube] i3JPUobdDm8: Downloading video info webpage
[youtube] i3JPUobdDm8: Extracting video information
WARNING: unable to extract uploader nickname
[youtube] i3JPUobdDm8: Downloading js player vfl6LN1Nj
ERROR: Signature extraction failed: Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/youtube_dl/extractor/youtube.py", line 1162, in _decrypt_signature
video_id, player_url, s
File "/usr/lib/python3/dist-packages/youtube_dl/extractor/youtube.py", line 1073, in _extract_signature_function
res = self._parse_sig_js(code)
File "/usr/lib/python3/dist-packages/youtube_dl/extractor/youtube.py", line 1134, in _parse_sig_js
jscode, 'Initial JS player signature function name', group='sig')
File "/usr/lib/python3/dist-packages/youtube_dl/extractor/common.py", line 782, in _search_regex
raise RegexNotFoundError('Unable to extract %s' % _name)
youtube_dl.utils.RegexNotFoundError: Unable to extract Initial JS player signature function name; 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.
(caused by RegexNotFoundError('Unable to extract \x1b[0;34mInitial JS player signature function name\x1b[0m; 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.',)); 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.
root@kaos:/home/keos#
Maybe i'm doing something wrong, any idea? thanks.
]]>