From cc5214b1ef63d5a03e67a6c559175882636e86ba Mon Sep 17 00:00:00 2001 From: Isaac Shoebottom Date: Tue, 14 Nov 2023 21:00:48 -0400 Subject: [PATCH] Add some excludes and reencode video to correct format --- dl.ps1 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dl.ps1 b/dl.ps1 index c4c12a5..67d93bf 100644 --- a/dl.ps1 +++ b/dl.ps1 @@ -1,6 +1,6 @@ -$Output = [int] (Get-ChildItem -Exclude *.ps1, *.txt, *.html, *.js, *.css | Select-Object BaseName -Last 1 | Select-Object -ExpandProperty BaseName) +$Output = [int] (Get-ChildItem -Exclude *.ps1, *.txt, *.html, *.js, *.css, *.exe | Select-Object BaseName -Last 1 | Select-Object -ExpandProperty BaseName) $Output++ $Output = $Output.ToString().PadLeft(5, '0') + ".mp4" -yt-dlp.exe $args[0] -o $Output - +# yt-dlp.exe --cookies-from-browser "vivaldi" $args[0] -o $Output +yt-dlp.exe $args[0] --recode-video mp4 -o $Output ./generate-max.ps1 \ No newline at end of file