Last active
July 29, 2020 15:23
-
-
Save Hossam-Abdin/ed327643ec584355ea3d1c5c824ce5c8 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
mkdir temp | |
cd temp | |
if [ "$1" = "-mp3" ]; then | |
youtube-dl -x --audio-format mp3 $2 | |
else | |
youtube-dl $1 | |
fi | |
file_name=$(ls) | |
oneshot -U hossam -W file_name | |
rm -r temp |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment