jweslley / youtube-dl-mp3

Downloads videos from YouTube and convert them to mp3.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Simplify to one line ?

rst0git opened this issue · comments

#!/bin/bash
youtube-dl --extract-audio --audio-format mp3 -f bestaudio --ignore-errors -o "%(title)s.%(ext)s" $@

No requirements ?

install the requirements, maybe you can apt-get install youtube-dl wget ffmpeg lame

Only youtube-dl
apt-get install youtube-dl

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

I think with pip this is easier

sudo apt install python-pip
pip install youtube_dl

yeah i agree the pip method is way better with apt the version is out of date and the script doesnt work

commented

yeah, pip and gem ruling the apt

@rst0git Can you submit a pull request with your changes so @jweslley might update this repository?

Hi @branb Thank you for the suggestion, I submit a PR #10