Skip to content

Instantly share code, notes, and snippets.

@zipizap
Created May 12, 2016 09:25
Show Gist options
  • Save zipizap/ecbc7000a5e596f8f33b3a222f0ed809 to your computer and use it in GitHub Desktop.
Save zipizap/ecbc7000a5e596f8f33b3a222f0ed809 to your computer and use it in GitHub Desktop.

Revisions

  1. zipizap created this gist May 12, 2016.
    7 changes: 7 additions & 0 deletions youtube-dl_as_mp3.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    #!/usr/bin/env bash
    #
    # To instal youtube-dl, see https://rg3.github.io/youtube-dl/
    #

    [[ "$1" ]] || { echo "Usage: $0 <YoutubeUrl>"; exit 1; }
    ./youtube-dl --extract-audio --audio-format mp3 --prefer-ffmpeg "$1"