Source: youtube-dl
Version: 2019.01.16-1
Tags: upstream fixed-upstream
Forwarded: https://github.com/rg3/youtube-dl/issues/18873

Looks like youtube-dl does not handle some videos from youtube:

$ youtube-dl --verbose https://youtu.be/v_B3qkp4nO4
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--verbose', 'https://youtu.be/v_B3qkp4nO4']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2019.01.16
[debug] Python version 3.5.3 (CPython) -
Linux-4.18.0-0.bpo.1-amd64-x86_64-with-debian-9.6
[debug] exe versions: ffmpeg 3.2.12-1, ffprobe 3.2.12-1, phantomjs
2.1.1, rtmpdump 2.4
[debug] Proxy map: {}
[youtube] v_B3qkp4nO4: Downloading webpage
[youtube] v_B3qkp4nO4: Downloading video info webpage
[youtube] {18} signature length 42.44, html5 player vfl-jbnrr
[youtube] v_B3qkp4nO4: Downloading player
https://www.youtube.com/yts/jsbin/player_ias-vfl-jbnrr/en_US/base.js
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 1207, in _parse_sig_js
    initial_function = jsi.extract_function(funcname)
  File "/usr/lib/python3/dist-packages/youtube_dl/jsinterp.py", line
245, in extract_function
    raise ExtractorError('Could not find JS function %r' % funcname)
youtube_dl.utils.ExtractorError: Could not find JS function
'encodeURIComponent'; 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 ExtractorError("Could not find JS function
'encodeURIComponent'; 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.
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 1207, in _parse_sig_js
    initial_function = jsi.extract_function(funcname)
  File "/usr/lib/python3/dist-packages/youtube_dl/jsinterp.py", line
245, in extract_function
    raise ExtractorError('Could not find JS function %r' % funcname)

Reply via email to