Variable: helper_mbb_pbp
consthelper_mbb_pbp: (game_id,pbp_txt) =>PbpResult=MBB.pbp
Defined in: src/producers/espn_basketball_pbp.ts:1201
MBB cleaned game dict (sdv-py helper_mbb_pbp(game_id, pbp_txt)): plays, timeouts, ...
Parameters
game_id
unknown
The ESPN event id; coerced with int() for gameId (a decimal string).
pbp_txt
any
The TRIMMED summary (espn_mbb_pbp(id, { raw: true })); no seasonseries.
Returns
The PbpResult.
Example
const trimmed = await sdv.mbb.espn_mbb_pbp(401638645, { raw: true });
const game = sdv.mbb.helper_mbb_pbp(401638645, trimmed);
game.gameId; // "401638645"
See
helper_nba_pbp for the required keys, the no-play-by-play case and the errors.