- Create a new file inside the folder you created to store your Youtube downloads. Call it dl.sh
- Paste the code above and save
- Open terminal, and type: cd YoutubeDownloads (replace YouTubeDownloads with the folder you created)
- Type: chmod +x dl.sh
- Now enter: ./dl.sh https://www.youtube.com/watch?v=p-GFsk5vE6o
- Wait for download to complete :)
Created
February 19, 2017 14:36
-
-
Save JamesTheHacker/b3deaf8fb852a1c5216063e42d6e3a68 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
youtube-dl --extract-audio --audio-format mp3 $1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment