credits -> credit

This commit is contained in:
Soph :3 2025-12-14 21:21:50 +02:00
parent dacd524069
commit 3510d1b8c5
3 changed files with 6 additions and 6 deletions

View file

@ -46,7 +46,7 @@ async function getTH() {
const trackerUrl = new URL(urlElement.href).searchParams.get("q");
const credits = rows[i].children[2].innerText;
const credit = rows[i].children[2].innerText;
const updated = tripleBool(rows[i].children[3].innerText);
const links_work = tripleBool(rows[i].children[4].innerText);
@ -57,7 +57,7 @@ async function getTH() {
.replace(/[\uFE00-\uFE0F]/g, '')
.replace(/\u200D/g, '')
.trim();
ndjson += JSON.stringify({ name: trackerName, url: trackerUrl, credits, updated, links_work, best }) + "\n";
ndjson += JSON.stringify({ name: trackerName, url: trackerUrl, credit, updated, links_work, best }) + "\n";
}
return ndjson;
@ -88,7 +88,7 @@ async function runComparison() {
const delta: Partial<Entry> = {};
if (oldItem.url !== newItem.url) delta.url = newItem.url;
if (oldItem.credits !== newItem.credits) delta.credits = newItem.credits;
if (oldItem.credit !== newItem.credit) delta.credit = newItem.credit;
if (oldItem.links_work !== newItem.links_work) delta.links_work = newItem.links_work;
if (oldItem.updated !== newItem.updated) delta.updated = newItem.updated;
if (oldItem.best !== newItem.best) delta.best = newItem.best;