Simplify to one line ?
rst0git opened this issue · comments
Radostin Stoyanov commented
#!/bin/bash
youtube-dl --extract-audio --audio-format mp3 -f bestaudio --ignore-errors -o "%(title)s.%(ext)s" $@
r00tn3p4l commented
No requirements ?
r00tn3p4l commented
install the requirements, maybe you can apt-get install youtube-dl wget ffmpeg lame
Radostin Stoyanov commented
Only youtube-dl
apt-get install youtube-dl
Radostin Stoyanov commented
Or
sudo curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dl
sudo chmod a+rx /usr/local/bin/youtube-dl
Tiago J. Silva commented
I think with pip this is easier
sudo apt install python-pip
pip install youtube_dl
Alaradia commented
yeah i agree the pip method is way better with apt the version is out of date and the script doesnt work
Alphu commented
yeah, pip and gem ruling the apt
Branislav Bardak commented
Radostin Stoyanov commented