Modern live ticker: crowd and weather before the kickoff
The recording's ticker matches and the paused live kickoff's matches carry attendance and weather (temperature, the original's weather picture; none indoors), as the interface asked in issue 15. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
98e6982d07
commit
d3ea650c07
4 files changed
+17
-1
No files matched your search
@@ -852,7 +852,11 @@ cli::Json live_fixture(const ModernState& g, uint32_t after_date, uint32_t until
|
||||
const Competition c = competition_of(g, s, m);
|
||||
matches.push_back(O{{"id", id}, {"home", O{{"id", s.clubs[m.home].id}, {"name", s.clubs[m.home].name}}},
|
||||
{"away", O{{"id", s.clubs[m.away].id}, {"name", s.clubs[m.away].name}}},
|
||||
{"owners", std::move(match_owners)}, {"competition", c.name}});
|
||||
{"owners", std::move(match_owners)}, {"competition", c.name},
|
||||
// known before the kickoff (frame 0 on): the crowd and the weather (rain is the
|
||||
// original's weather picture 0-7); the indoor tournament has no weather
|
||||
{"attendance", int64_t(m.attendance)},
|
||||
{"weather", m.type - 1 == 0xb ? J(nullptr) : J(O{{"temperature", int(m.temperature)}, {"rain", int(m.rain)}})}});
|
||||
}
|
||||
for (const Ref& r : others) conference.push_back(almanac_match(g, *r.season, r.index));
|
||||
|
||||
|
||||
Reference in new issue
Block a user