LoginSignup
1
2

More than 5 years have passed since last update.

youtube-dlで今まで取得できていた動画のurlが取得できない問題

Posted at

はじめに

GoogleHomeとIFTTTとFirebaseとラズパイとnode.jsでyoutubeの音を流す
これを作った当初取得できていたurlが急に取得できなくなった問題が発生した
取得できるurlと取得できないurlが存在する

環境

$ pip3 list
youtube-dl (2018.10.5)

エラー内容

exec error: Error: Command failed: youtube-dl -g -x https://www.youtube.com/watch?v={item.id.videoIdが入る}
ERROR: Signature extraction failed: Traceback (most recent call last):

対応

下記で言及されているようにyoutube-dlを(2015.11.02)にアップデートする必要がある

ERROR: Signature extraction failed: Traceback (most recent call last):

youtube-dl(2015.11.02)のアップデート内容
Extractor error

ラズパイのyoutube-dlを(2015.11.02)にアップデートした

$ sudo pip3 install youtube-dl==2018.11.07

Downloading/unpacking youtube-dl==2018.11.07
  Downloading youtube_dl-2018.11.7-py2.py3-none-any.whl (1.8MB): 1.8MB downloaded
Installing collected packages: youtube-dl
  Found existing installation: youtube-dl 2018.10.5
    Uninstalling youtube-dl:
      Successfully uninstalled youtube-dl
Successfully installed youtube-dl
Cleaning up...

$ sudo pip3 list

youtube-dl (2018.11.7)

無事にurlを取得できるようになった

1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2