Skip to content

Instantly share code, notes, and snippets.

@fbehrens
Created July 26, 2020 09:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fbehrens/b1af7d4819b513583bbbdd4fa4ef29fa to your computer and use it in GitHub Desktop.
Save fbehrens/b1af7d4819b513583bbbdd4fa4ef29fa to your computer and use it in GitHub Desktop.
read musicmatch
filter Decode { [System.Net.WebUtility]::UrlDecode($_) }
filter Get-Songs{
$xml = New-Object XML.XmlDocument
$xml.LoadXml((Get-Content $_))
$disk = $xml.BPP.disc
$outFile = $_.name -replace "\.bpp$",".mp3"
$(0..($disk.path.Length -1) | % {
"$($disk.path[$_].src | Decode)$($disk.file[$_].src | Decode)"
} )> $outFile
Write-Host write $outFile
}
dir *.bpp |
Get-Songs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment