Created
October 12, 2020 10:31
-
-
Save Sinequanonh/9088ed8831240025b4ca3127342d09d3 to your computer and use it in GitHub Desktop.
ytdl.sh
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
# You should install youtube-dl locally and on the remote server | |
# To use: ./ytdl [video URL] | |
uuid="$(uuidgen).mp4"; | |
ssh USER@IP_ADDRESS " | |
youtube-dl $1 --output $uuid | |
exit; | |
"; | |
scp USER@IP_ADDRESS:/PATH/TO/FILE/$uuid /Users/PATH/TO/DESTINATION |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment