dockerfiles icon indicating copy to clipboard operation
dockerfiles copied to clipboard

vimagick/youtube-dl: signature extraction failed

Open LockeJet opened this issue 6 years ago • 0 comments

I tried to download video from youtube.com. Some video could be downloaded, and some failed.

Here was the script:

#!/bin/bash
docker stop youtube-dl
docker rm youtube-dl
#alias youtube-dl="docker run -d -u $(id -u):$(id -g) --name youtube-dl-vimagick \
#--restart unless-stopped \
alias yt-dl='docker run --rm  -u $(id -u):$(id -g) \
--name youtube-dl-vimagick \
-v /etc/localtime:/etc/localtime \
-v ${PWD}/data:/data \
-v ${PWD}/work:/work \
vimagick/youtube-dl'

DL_DIR=/data/Temp
yt-dl --batch-file "/work/url.list" --download-archive "/work/archive.list" \
-k \
-f  'bestvideo[ext=mp4]+bestaudio[ext=m4a]/bestvideo+bestaudio' \
-o "${DL_DIR}/%(title)s.%(ext)s" \
--write-sub --embed-sub --all-subs \
--add-metadata \
--embed-thumbnail \
--exec "/work/rm_extra_video.sh"

Here were the error messages:

admin@pve:~/docker-youtube_dl$ sh docker-youtube_dl-vimagick.sh
<Other messages were omitted here>
[youtube] V8jQfUPoS28: Downloading webpage
[youtube] V8jQfUPoS28: Downloading video info webpage
[youtube] V8jQfUPoS28: Downloading js player vfliSA6ma
ERROR: Signature extraction failed: Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/youtube_dl/extractor/youtube.py", line 1342, in _decrypt_signature
    video_id, player_url, s
  File "/usr/lib/python3.6/site-packages/youtube_dl/extractor/youtube.py", line 1250, in _extract_signature_function
    res = self._parse_sig_js(code)
  File "/usr/lib/python3.6/site-packages/youtube_dl/extractor/youtube.py", line 1314, in _parse_sig_js
    jscode, 'Initial JS player signature function name', group='sig')
  File "/usr/lib/python3.6/site-packages/youtube_dl/extractor/common.py", line 1005, 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 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.',)); 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.

LockeJet avatar Jul 06 '19 01:07 LockeJet