fix link
This commit is contained in:
parent
d662954b82
commit
bd4d7dcad3
1 changed files with 1 additions and 1 deletions
|
|
@ -74,7 +74,7 @@ foreach ($winid in $new_win_matches) {
|
||||||
$winmatches = $player_matches.player_matches | Where-Object { $_.id -eq $winid }
|
$winmatches = $player_matches.player_matches | Where-Object { $_.id -eq $winid }
|
||||||
$telemetry = (invoke-webrequest @($winmatches.telemetry_url)[0]).content | convertfrom-json | where-object { ($_._T -eq 'LOGPLAYERTAKEDAMAGE') -or ($_._T -eq 'LOGPLAYERKILLV2') }
|
$telemetry = (invoke-webrequest @($winmatches.telemetry_url)[0]).content | convertfrom-json | where-object { ($_._T -eq 'LOGPLAYERTAKEDAMAGE') -or ($_._T -eq 'LOGPLAYERKILLV2') }
|
||||||
$winners = @(($winmatches | where-object {$_.stats.winPlace -eq 1}).stats.name)
|
$winners = @(($winmatches | where-object {$_.stats.winPlace -eq 1}).stats.name)
|
||||||
$2D_replay_url = $winmatches.telemetry_url[0] -replace 'https://telemetry-cdn.pubg.com/bluehole-pubg', 'https://chickendinner.gg'
|
$2D_replay_url = @($winmatches.telemetry_url)[0] -replace 'https://telemetry-cdn.pubg.com/bluehole-pubg', 'https://chickendinner.gg'
|
||||||
$2D_replay_url = $2D_replay_url -replace '-telemetry.json', ''
|
$2D_replay_url = $2D_replay_url -replace '-telemetry.json', ''
|
||||||
$2D_replay_url = $2D_replay_url + "?follow=$($winners[0])"
|
$2D_replay_url = $2D_replay_url + "?follow=$($winners[0])"
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue