Created
June 29, 2021 14:32
-
-
Save stu43005/c71464a2b81ab1e2be76686ae2b03ecb to your computer and use it in GitHub Desktop.
yt-dlp updater https://github.com/yt-dlp/yt-dlp
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
$json = (Invoke-WebRequest -Uri https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest).Content | |
$release = ConvertFrom-Json -InputObject $json | |
$exe = $release.assets | ? { $_.name -eq "yt-dlp.exe" } | |
Invoke-WebRequest -Uri $exe.browser_download_url -OutFile yt-dlp.exe |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment