$wc=New-Object System.Net.WebClient
$wc.Encoding=[System.Text.Encoding]::UTF8
$source=$wc.DownloadString($url)
$source -match("""name"": ""(.*?)"",") | Out-Null
$title=$matches[1]
$source -match("data-streamkey=""(.*?)""") | Out-Null
$wc.Headers.Add("Content-Type: application/x-www-form-urlencoded")
$wc.UploadString("https://jp.spankbang.com/api/videos/stream","id="+$matches[1]) -match("""stream_url_m3u8"":\[""(.*?)""") | Out-Null
$m3u8=$matches[1]
./youtube-dl --hls-prefer-native "$m3u8" -o "$title.mp4"