Trying to download an audio from youtube.
youtube-dl --extract-audio --audio-format mp3 https://www.youtube.com/watch?v=ILSr9BbhoJQ
[youtube] ILSr9BbhoJQ: Downloading webpage
[youtube] ILSr9BbhoJQ: Downloading video info webpage
ERROR: ILSr9BbhoJQ: "token" parameter not in video info for unknown reason; 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.
Then I did this.
sudo apt-get remove youtube-dl
sudo mkdir -pv /usr/local/bin
sudo wget https://yt-dl.org/downloads/latest/youtube-dl -O /usr/local/bin/youtube-dl
sudo chmod a+rx /usr/local/bin/youtube-dl
andy@7_~/Downloads$ youtube-dl -U
bash: /usr/bin/youtube-dl: No such file or directory
youtube-dl is in /usr/bin directory.
apt
installed version if you are getting thepip install
version. Problems may not appear at once, but may bite you later... You didn't provide your release, I've usually filed a bug & within a few days (usually next day) the newer version is packaged and available forapt
testing (on later releases esp.) – guiverc Jun 09 '20 at 23:20sudo wget https://yt-dl.org/downloads/latest/youtube-dl -O /usr/bin/youtube-dl sudo chmod a+rx /usr/bin/youtube-dl
If you have the youtube-dl in the right folder you could try run the 2nd command. – Munsko Jun 10 '20 at 02:37sudo
which is a high risk combination. Ubuntu Software has a package in it which can solve this problem. – karel Jun 10 '20 at 02:39which youtube-dl
report? Note that if you're on 20.04 if you use the wget method it downloads a python2 version so you need to have thepython-is-python2
package installed for it to work... – doug Jun 10 '20 at 03:28