diff --git a/YouTube.md b/YouTube.md index 326bec9..ed51c85 100644 --- a/YouTube.md +++ b/YouTube.md @@ -5,7 +5,7 @@ - Ignores unavailable videos - Using https://github.com/yt-dlp/yt-dlp -## Install +## Install on Debian or Ubuntu based Linux ``` sudo apt install python3-pip ffmpeg @@ -23,6 +23,30 @@ Add to .bashrc: ``` alias yd="~/.local/bin/yt-dlp -f 'bv+ba/b' --sub-langs all,-live_chat --compat-options no-youtube-unavailable-videos --audio-multistreams --video-multistreams --no-clean-infojson --embed-subs" ``` +## Install on Mac + +``` +brew install python3 ffmpeg +``` +Create yd.sh +``` +cd Movies +nano yd.sh +``` +There add text: +``` +~/.local/bin/yt-dlp -f 'bv+ba/b' --sub-langs all,-live_chat --compat-options no-youtube-unavailable-videos --audio-multistreams --video-multistreams --no-clean-infojson --embed-subs $1 +``` +Save and Exit: Ctrl-o Enter Ctrl-x Enter + +Change script to be executeable: +``` +chmod +x yd.sh +``` +Then download video: +``` +./yd.sh https://youtube.com/... +``` ## Download one or more videos from YouTube