feat: add optional HLTB enrichment
CI / test (push) Successful in 7m10s

This commit is contained in:
strsv committed 2026-11-06 22:16:27 +03:00
1 parent b865a4a389
commit d07dec5e75
19 files changed
+258 -23

No files matched your search

+2 -1
View File
@@ -1184,7 +1184,8 @@ function renderModal(g) {
const meta = [
g.year ? `<span><b>${esc(g.year)}</b></span>` : "",
g.review != null ? `<span><b>${g.review}%</b> отзывов</span>` : "",
g.duration ? `<span title="оценка по тегам"><b>${fmtDuration(g.duration)}</b></span>` : "",
g.duration ? `<span title="${g.hltb ? "HowLongToBeat" : "оценка по тегам"}"><b>${fmtDuration(g.duration)}</b></span>` : "",
g.hltb?.complete ? `<span class="muted" title="HLTB: main / main+extra / 100%">HLTB ${Math.round(g.hltb.main || g.duration)} / ${Math.round(g.hltb.complete)} ч</span>` : "",
g.metacritic != null ? `<span>MC <b>${g.metacritic}</b></span>` : "",
g.hours ? `<span><b>${fmtHours(g.hours)}</b></span>` : "",
g.installed ? `<span class="muted">установлена${g.size_gb ? " · " + g.size_gb + " ГБ" : ""}</span>` : "",