Skip to content

Instantly share code, notes, and snippets.

@AzimsTech
Last active October 6, 2019 04:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AzimsTech/fa452050d550a388de1973aee04d60f2 to your computer and use it in GitHub Desktop.
Save AzimsTech/fa452050d550a388de1973aee04d60f2 to your computer and use it in GitHub Desktop.
Powershell functions for youtube-dl
# Use `echo $profile` to get the directory of powershell profile
# Follow format from config
function yt {
$url = Get-Clipboard
youtube-dl $url
}
# Download the best format available
function ytb {
$url = Get-Clipboard
youtube-dl -f best $url }
# List available format
function ytf {
$url = Get-Clipboard
youtube-dl -F $url
}
# Download selected format + lowest quality audio
function yts {
$url = Get-Clipboard
youtube-dl -f $args+worstaudio $url
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment