memes/dl.ps1

6 lines
359 B
PowerShell
Raw Permalink Normal View History

$Output = [int] (Get-ChildItem -Exclude *.ps1, *.txt, *.html, *.js, *.css, *.exe | Select-Object BaseName -Last 1 | Select-Object -ExpandProperty BaseName)
2022-09-26 19:57:17 -03:00
$Output++
$Output = $Output.ToString().PadLeft(5, '0') + ".mp4"
# yt-dlp.exe --cookies-from-browser "vivaldi" $args[0] -o $Output
yt-dlp.exe $args[0] --recode-video mp4 -o $Output
2022-09-26 19:57:17 -03:00
./generate-max.ps1