Skip to content

Commit 22ef999

Browse files
committed
fix: update URL protocol handling in command generation
1 parent 1d7b1f3 commit 22ef999

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

powershell/yt-download.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ if ($url -and -not $install -and -not $uninstall) {
468468

469469
# If you call the script with -url only, create default command
470470
if ($url.StartsWith("https://")) {
471-
$url = "ytdl:?type=auto&url=$url"
471+
$url = "${protocol}:?type=auto&url=$url"
472472
}
473473

474474
# Extract parts after ytdl:?

0 commit comments

Comments
 (0)