LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Trying to use youtube-dl and getting the following error message (https://www.linuxquestions.org/questions/linux-newbie-8/trying-to-use-youtube-dl-and-getting-the-following-error-message-4175660837/)

rainsnow19 09-12-2019 10:58 PM

Trying to use youtube-dl and getting the following error message
 
Code:

youtube-dl https://www.youtube.com/watch?v=dJ0o_WVlyoQ


[youtube] dJ0o_WVlyoQ: Downloading webpage
[youtube] dJ0o_WVlyoQ: Downloading embed webpage
[youtube] dJ0o_WVlyoQ: Refetching age-gated info webpage
WARNING: Unable to extract video title
[youtube] dJ0o_WVlyoQ: Downloading js player vfl2pEEGH
ERROR: Signature extraction failed: Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/youtube_dl/extractor/youtube.py", line 1232, in _decrypt_signature
    video_id, player_url, s
  File "/usr/lib/python3/dist-packages/youtube_dl/extractor/youtube.py", line 1140, in _extract_signature_function
    res = self._parse_sig_js(code)
  File "/usr/lib/python3/dist-packages/youtube_dl/extractor/youtube.py", line 1204, 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 983, 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.


evo2 09-12-2019 11:39 PM

Hi,

did you do what it says? Eg check you are running the latest version?
I get the same error using version 2019.01.17 but it works with 2019.09.12.1.

Evo2.

rnturn 09-13-2019 10:03 AM

Quote:

Originally Posted by rainsnow19 (Post 6036284)
Code:

youtube-dl https://www.youtube.com/watch?v=dJ0o_WVlyoQ


[youtube] dJ0o_WVlyoQ: Downloading webpage
[youtube] dJ0o_WVlyoQ: Downloading embed webpage
[youtube] dJ0o_WVlyoQ: Refetching age-gated info webpage
WARNING: Unable to extract video title
[youtube] dJ0o_WVlyoQ: Downloading js player vfl2pEEGH
ERROR: Signature extraction failed: Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/youtube_dl/extractor/youtube.py", line 1232, in _decrypt_signature
    video_id, player_url, s
  File "/usr/lib/python3/dist-packages/youtube_dl/extractor/youtube.py", line 1140, in _extract_signature_function
    res = self._parse_sig_js(code)
  File "/usr/lib/python3/dist-packages/youtube_dl/extractor/youtube.py", line 1204, 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 983, 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.


With the frequent changes that YouTube makes to its web site and page formats, the youtube-dl developer(s) are continually having to hit a moving target. If you haven't updated youtube-dl recently, the error you're seeing is likely from using an out-of-date version---even if it's only a week old.


All times are GMT -5. The time now is 04:13 AM.