AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / ubuntu / 问题 / 598200
Accepted
Ohmygirl
Ohmygirl
Asked: 2015-03-19 01:43:15 +0800 CST2015-03-19 01:43:15 +0800 CST 2015-03-19 01:43:15 +0800 CST

youtube-dl 提取签名失败

  • 772

youtube-dl使用软件下载 youtube被认为是非常有用的。

看到一条消息,它停止工作,如下所示。

ERROR: Signature extraction failed: Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/youtube_dl/extractor/youtube.py", line 479, in _decrypt_signature
    video_id, player_url, s
  File "/usr/lib/python2.7/dist-packages/youtube_dl/extractor/youtube.py", line 383, in _extract_signature_function
    res = self._parse_sig_js(code)
  File "/usr/lib/python2.7/dist-packages/youtube_dl/extractor/youtube.py", line 454, in _parse_sig_js
    u'Initial JS player signature function name')
  File "/usr/lib/python2.7/dist-packages/youtube_dl/extractor/common.py", line 391, in _search_regex
    raise RegexNotFoundError(u'Unable to extract %s' % _name)
RegexNotFoundError: Unable to extract Initial JS player signature function name; please report this issue on https://yt-dl.org/bug . Be sure to call youtube-dl with the --verbose flag and include its complete output. Make sure you are using the latest version; type  youtube-dl -U  to update.
; please report this issue on https://yt-dl.org/bug . Be sure to call youtube-dl with the --verbose flag and include its complete output. Make sure you are using the latest version; type  youtube-dl -U  to update.

我应该怎么做才能继续?

youtube-dl
  • 6 6 个回答
  • 74641 Views

6 个回答

  • Voted
  1. Best Answer
    karel
    2016-08-20T16:54:40+08:002016-08-20T16:54:40+08:00

    您收到此错误:

    Unable to extract Initial JS player signature function name
    

    ...因为 youtube-dl 不是最新的。与几年前相比,Google 一直在更频繁地改变访问 YouTube 视频的方式,因此为了使 youtube-dl 保持最新,它也必须更频繁地更新。要安装最新版本的 youtube-dl,请打开终端并输入:

    sudo snap install youtube-dl # start with snap run youtube-dl 
    

    或者:

    sudo apt remove youtube-dl  
    sudo apt install python3-pip
    python3 -m pip install youtube-dl
    

    要将 youtube-dl 升级到最新版本:

    sudo snap install youtube-dl # youtube-dl snap is automatically upgraded 
    

    或者

    python3 -m pip install --upgrade youtube-dl    
    

    谷歌更改访问 YouTube 视频的代码的频率真是太疯狂了。我似乎记得几个月前才更新过 youtube-dl,但在我更新之前它仍然无法下载所选视频。

    youtube-dl 是一个 Python 程序,因此您也可以在 Python 虚拟环境中本地安装最新版本的 youtube-dl。有关如何设置和使用 Python 虚拟环境的信息,请参阅如何在 Ubuntu 中设置和使用虚拟 Python 环境?.

    • 74
  2. Philippe Gachoud
    2018-11-10T02:57:31+08:002018-11-10T02:57:31+08:00

    我让它工作的唯一方法是最新版本(对我来说是 debian)

    sudo wget https://yt-dl.org/latest/youtube-dl -O /usr/local/bin/youtube-dl
    sudo chmod a+x /usr/local/bin/youtube-dl
    hash -r
    

    来自github 仓库

    • 6
  3. E_Angel
    2015-03-19T02:40:42+08:002015-03-19T02:40:42+08:00

    它曾经发生在我身上。正如他们在评论中所说,您必须更新您的系统或只更新 youtube-dl。也可以很好地使用引号,如下例所示:

    youtube-dl "https://www.youtube.com/watch?v=n6AL-WpgoFw"
    
    • 3
  4. James Gates
    2019-01-26T03:23:31+08:002019-01-26T03:23:31+08:00

    我有同样的问题,这解决了它

     sudo -H pip install --upgrade youtube-dl
    

    并尝试将链接放入“ link”

    • 3
  5. prosti
    2019-07-12T06:28:31+08:002019-07-12T06:28:31+08:00

    只有这种方式对我有用!

    当我每次播放新音乐时都会旅行,这里是如何从 pip 安装 youtube-dl。

    如果你从 repo 安装它,它不能下载音乐,总是抱怨!。所以用这个来下载海绵宝宝放松大师和平:

    !pip install --upgrade youtube-dl 
    !youtube-dl -x --audio-format mp3 https://www.youtube.com/watch?v=oq526_37wc0
    
    • 1
  6. Vicrobot
    2018-11-11T01:01:20+08:002018-11-11T01:01:20+08:00

    这些答案都不适合我。我通过使用错误中给出的指令使这个东西工作:-

    sudo youtube-dl -U

    我不知道为什么这种更新方式起作用而不是那个升级命令的确切原因..

    • 0

相关问题

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve