|
|
|
|
|
by tosti
41 days ago
|
|
You've got to be kidding me with that syntax. Here's the script in Perl: $input = <STDIN>;
chdir "~/Desktop";
system("yt-dlp -x --audio-format mp3 $input");
And have you seen errors in powershell? Bill Lumbergh would like such a verbose report, not me. |
|
It's not much fun, and the resulting code tends to be fragile. Every line ends up being piped through utilities like cut, join, awk, and jq.
IMO the structured output from pwsh makes those sort of tasks a great deal easier.