Last active
October 6, 2019 04:58
-
-
Save AzimsTech/fa452050d550a388de1973aee04d60f2 to your computer and use it in GitHub Desktop.
Powershell functions for youtube-dl
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
# 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