Created
July 26, 2020 09:13
-
-
Save fbehrens/b1af7d4819b513583bbbdd4fa4ef29fa to your computer and use it in GitHub Desktop.
read musicmatch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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