The officially official Devuan Forum!

You are not logged in.

#1 2018-12-14 09:24:39

boycottsystemd
Member
Registered: 2017-09-25
Posts: 77  

[SOLVED] youtube-dl can't download YT video

$ youtube-dl --verbose https://www.youtube.com/watch?v=AuFiBjNTB9o[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--verbose', 'https://www.youtube.com/watch?v=AuFiBjNTB9o']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2017.05.18.1
[debug] Python version 3.5.3 - Linux-4.9.0-8-amd64-x86_64-with-debian-9
[debug] exe versions: rtmpdump 2.4
[debug] Proxy map: {}
[youtube] AuFiBjNTB9o: Downloading webpage
[youtube] AuFiBjNTB9o: Downloading video info webpage
[youtube] AuFiBjNTB9o: Extracting video information
WARNING: unable to extract uploader nickname
WARNING: unable to extract html5 player; 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.
[youtube] {18} signature length 41.40, html5 player None
[youtube] AuFiBjNTB9o: Downloading player https://www.youtube.com/yts/jsbin/player_ias-vflXas3a_/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 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.
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.
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.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/youtube_dl/YoutubeDL.py", line 760, in extract_info
    ie_result = ie.extract(url)
  File "/usr/lib/python3/dist-packages/youtube_dl/extractor/common.py", line 433, in extract
    ie_result = self._real_extract(url)
  File "/usr/lib/python3/dist-packages/youtube_dl/extractor/youtube.py", line 1755, in _real_extract
    encrypted_sig, video_id, player_url, age_gate)
  File "/usr/lib/python3/dist-packages/youtube_dl/extractor/youtube.py", line 1172, in _decrypt_signature
    'Signature extraction failed: ' + tb, cause=e)
youtube_dl.utils.ExtractorError: 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.
$ uname -a
Linux hstnm 4.9.0-8-amd64 #1 SMP Debian 4.9.130-2 (2018-10-27) x86_64 GNU/Linux

$ cat /etc/os-release 
PRETTY_NAME="Devuan GNU/Linux ascii"
NAME="Devuan GNU/Linux"
ID=devuan
ID_LIKE=debian
HOME_URL="https://www.devuan.org/"
SUPPORT_URL="https://devuan.org/os/community"
BUG_REPORT_URL="https://bugs.devuan.org/"

Can pls someone try it ?

Last edited by boycottsystemd (2018-12-20 07:12:37)

Offline

#2 2018-12-14 10:44:03

ilargi
Member
Registered: 2017-06-23
Posts: 8  

Re: [SOLVED] youtube-dl can't download YT video

No problem downloading here with command:

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

My versions of youtube-dl and python are:

[debug]youtube-dl version 2018.12.03
[debug] Python version 2.7.13 (CPython)

Offline

#3 2018-12-14 11:40:48

boycottsystemd
Member
Registered: 2017-09-25
Posts: 77  

Re: [SOLVED] youtube-dl can't download YT video

Thank you. I have fully upgraded system. Should I use another repo ?

$ apt show yout*
Package: youtube-dl
Version: 2017.05.18.1-1
Priority: extra
Section: web
Maintainer: Rogério Brito <rbrito@ime.usp.br>
Installed-Size: 4 930 kB
Pre-Depends: dpkg (>= 1.15.7.2)
Depends: python3-pkg-resources, python3:any (>= 3.3.2-2~)
Recommends: aria2 | wget | curl, ca-certificates, ffmpeg | libav-tools, mpv | mplayer, rtmpdump
Homepage: https://rg3.github.com/youtube-dl/
Tag: implemented-in::python, interface::commandline, network::client,
 role::program, use::downloading, works-with::video
Download-Size: 909 kB
APT-Manual-Installed: yes
APT-Sources: http://pkgmaster.devuan.org/merged ascii/main amd64 Packages
Description: downloader of videos from YouTube and other sites

Offline

#4 2018-12-14 15:12:13

ilargi
Member
Registered: 2017-06-23
Posts: 8  

Re: [SOLVED] youtube-dl can't download YT video

I keep youtube-dl updated downloading the latest release from
https://rg3.github.io/youtube-dl/download.html and then copying file youtube-dl to /usr/local/bin/.
You can do that or just follow the simple commands on the download site.

Offline

#5 2018-12-14 15:12:54

Ogis1975
Member
Registered: 2017-04-21
Posts: 83  

Re: [SOLVED] youtube-dl can't download YT video

boycottsystemd wrote:

Thank you. I have fully upgraded system. Should I use another repo ?

Hello. The problem is that youtube-dl in Devuan ascii is very old. Check this.
On this page you will learn how to install the latest version.

Offline

#6 2018-12-20 07:12:14

boycottsystemd
Member
Registered: 2017-09-25
Posts: 77  

Re: [SOLVED] youtube-dl can't download YT video

Hello, thank you, it has solved the issue.

Offline

Board footer