File tree 2 files changed +6
-0
lines changed
2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change
1
+ import json
1
2
from pathlib import Path
2
3
from renderer .render import Renderer
3
4
from replay_parser import ReplayParser
25
26
enable_chat = True ,
26
27
use_tqdm = True ,
27
28
)
29
+ with open (path .parent .joinpath (f"{ path .stem } -builds.json" ), "w" ) as fp :
30
+ json .dump (renderer .get_player_build (), fp , indent = 4 )
28
31
renderer .start (str (video_path ))
29
32
LOGGER .info (f"The video file is at: { str (video_path )} " )
30
33
LOGGER .info ("Done." )
Original file line number Diff line number Diff line change @@ -348,6 +348,9 @@ def get_player_build(self) -> list[dict]:
348
348
builds = []
349
349
350
350
for player in self .replay_data .player_info .values ():
351
+ if player .relation not in [- 1 , 0 ]:
352
+ continue
353
+
351
354
try :
352
355
index , build_str = self ._builder .get_build (player )
353
356
build_url = f"{ url } { index } &build={ build_str } "
You can’t perform that action at this time.
0 commit comments