Liven up the match day: varied ticker wording, whistles, results of the day, eleven of the day

The ticker picks its sentence from several variants by the event's facts
and names equalisers, leads and late goals; kickoff, half time and the
final whistle are reported, with the same wording while the kickoff runs
live. The ticker's third tab lists the other results of the day. Modern
chooses an eleven of the day per league from the recorded match facts and
the review shows it.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
MichaelandClaude Fable 5.2 committed 2026-11-14 11:34:47 +01:00
1 parent 333bc57526
commit 1732a2477b
11 files changed
+288 -24

No files matched your search

+3
View File
@@ -48,6 +48,7 @@ void App::engine_kickoff() {
return EngineReply{link, desk, response, nullptr};
}
response["liveRecording"] = state;
response["postmatch"] = link->read({{"kind", "postmatch"}});
auto after = link->snapshot();
engine_attach_opening(*link, engine_season_id(desk), after, response);
return EngineReply{link, std::move(after), response, nullptr};
@@ -148,6 +149,8 @@ void App::engine_accept(EngineReply result) {
engine_live_begin(state, engine_response_.value("newRevision", std::string()));
}
if (engine_response_.contains("liveRecording")) {
engine_postmatch_read_ = engine_response_.value("postmatch", Json());
engine_response_.erase("postmatch");
const Json recording = engine_response_.at("liveRecording");
engine_response_.erase("liveRecording");
engine_advance_payload_ = Json::object();