youtube-dl won't download mp3
youtube-dl downloads neither videos nor mp3. This is the command I use:
youtube-dl --extract-audio --audio-format mp3 <Youtube URL>
The output:
m62iekbg9eo: "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.
The version is 2018.03.14. I upgraded it using pip and it said it is upgraded. But when I asked the version youtube-dl --version
it still shows me 2018.03.14.
So I deleted youtube-dl and installed it again with pip. The commands I used:
sudo apt-get remove youtube-dl
sudo apt-get install python-pip
pip install --user youtube-dl
But now, when I try to donwload an mp3 it says:
bash: /usr/bin/youtube-dl: No such file or directory
Also I use 18.04.3 LTS
Remove an youtube-dl packages from your system.
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
First one draws the program from git, and saves the file under /usr/local/bin/
Second one makes it executable.
This is the up-to-date version direct from git. From time to time you have to update the programm with
sudo youtube-dl -U