This commit is contained in:
leah clark 2022-09-06 09:47:41 +01:00
commit ce0de63636
2 changed files with 14 additions and 0 deletions

2
Profile.ps1 Normal file
View File

@ -0,0 +1,2 @@
$env:POWERSHELL_TELEMETRY_OPTOUT=yes
import-module ~/Documents/PowerShell/functions.psm1

12
functions.psm1 Normal file
View File

@ -0,0 +1,12 @@
function Save-VideoAsMp3
{
[CmdletBinding()]
[alias("2mp3")]
param(
[Parameter(Mandatory=$true)]
[String]$Url
)
Push-Location ~/Music
yt-dlp.exe --throttled-rate=40K -N4 --extract-audio --audio-format mp3 $Url
Pop-Location
}