Last active
July 19, 2021 03:08
-
-
Save rm77/af0ea7911fdca26c2b8e6a972cfae1de to your computer and use it in GitHub Desktop.
play url from command line
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/sh | |
#need to install youtube-dl and mplayer | |
#apt install -y mplayer youtube-dl | |
URL=$1 | |
mplayer $(youtube-dl -x --audio-format mp3 -g $URL) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment