credits -> credit
This commit is contained in:
parent
dacd524069
commit
3510d1b8c5
3 changed files with 6 additions and 6 deletions
|
|
@ -273,7 +273,7 @@
|
|||
{ "name": "Lil Peep [Alt # 2]", "url": "https://docs.google.com/spreadsheets/d/1inLqHXfTLm5CPpEE2tUoTepm8CjUZ1UgB9iIEzurF5A/edit#gid=0", "credit": "Dakota", "links_work": 0, "updated": 0, "best": false }
|
||||
{ "name": "Lil Peep [Alt # 3]", "url": "https://docs.google.com/spreadsheets/d/1yZTHGMjtB3BDAK_Yz21Fk4nyHt8ZuUF1xVE9S1HwbRA/edit#gid=1792554832", "credit": "ShadowTB", "links_work": 0, "updated": 1, "best": false }
|
||||
{ "name": "Lil Pump", "url": "https://docs.google.com/spreadsheets/u/3/d/1DCYxExj15O6YUB4diwhSN_A8xRjAFIAg8KlW5BhgZQI/htmlview", "credit": "@Rojas999", "links_work": 1, "updated": 1, "best": false }
|
||||
{ "name": "Lil Shine", "url": "https://docs.google.com/spreadsheets/d/1kmsM7Dz2cqnMbHIKq2en2xXR_F-sZ5_vAAEOW72F7co/edit?gid%3D1510699798%23gid%3D1510699798", "credit": "elapid on disc", "links_work": 1, "updated": 1, "best": false, "credits": "elapid, slemns, berrypunched" }
|
||||
{ "name": "Lil Shine", "url": "https://docs.google.com/spreadsheets/d/1kmsM7Dz2cqnMbHIKq2en2xXR_F-sZ5_vAAEOW72F7co/edit?gid%3D1510699798%23gid%3D1510699798", "credit": "elapid, slemns, berrypunched", "links_work": 1, "updated": 1, "best": false }
|
||||
{ "name": "Lil Skies", "url": "https://docs.google.com/spreadsheets/d/1tZHwkHGd_fSfJNq6o3mR0PxZgZDmms7DrBlJFbBBk1M/edit?usp=sharing", "credit": "SkiesHigh", "links_work": 1, "updated": 1, "best": false }
|
||||
{ "name": "Lil Skies [Alt]", "url": "https://docs.google.com/spreadsheets/d/1Kk1Cu8cH6cyTM37Ji1x8rn-VBZeYcOXorGEypdlU6K4/edit?gid=751546300#gid=751546300", "credit": "admission", "links_work": 1, "updated": 1, "best": false }
|
||||
{ "name": "Lil Tjay", "url": "https://docs.google.com/spreadsheets/d/13wF3n2ZYznpK5wgLFfU7lz-_xxVAcxRxMFtiy5WAvKo/edit?usp=sharing", "credit": "@InDe_eD & Roses", "links_work": 0, "updated": 1, "best": false }
|
||||
|
|
@ -456,4 +456,4 @@
|
|||
{ "name": "Tyler, the Creator", "url": "https://docs.google.com/spreadsheets/d/10jvvqsnTrPbPqtfkJTn24-xrhfAssFQxuDwWY9CpZow/", "credit": "?", "links_work": 1, "updated": 1, "best": true }
|
||||
{ "name": "Afrosurrealist", "url": "https://docs.google.com/spreadsheets/d/1OfLRtdfW0SikpmOJpzBXNVv5L-O3zxP245_T-i6Twgo/", "credit": "xyanprod", "links_work": 1, "updated": 1, "best": false }
|
||||
{ "name": "Camilla Cabello (Sanchez Version)", "url": "https://docs.google.com/spreadsheets/d/1XHIMrA-sE4SsT1Xf3W9om0lLwVhOUxeR2v3JM0J8BDw/", "credit": "Sanchez05310", "links_work": 1, "updated": 1, "best": false }
|
||||
{ "name": "EsDeeKid", "url": "https://docs.google.com/spreadsheets/d/1adwl0w_cAvqw7ZN4jnGNKjh_dOzEiYBCRgGiVcEs8cY/edit?gid%3D1520634709%23gid%3D1520634709", "credits": "chainlocked, grace", "updated": 1, "links_work": 1, "best": false }
|
||||
{ "name": "EsDeeKid", "url": "https://docs.google.com/spreadsheets/d/1adwl0w_cAvqw7ZN4jnGNKjh_dOzEiYBCRgGiVcEs8cY/edit?gid%3D1520634709%23gid%3D1520634709", "credit": "chainlocked, grace", "updated": 1, "links_work": 1, "best": false }
|
||||
|
|
|
|||
6
index.ts
6
index.ts
|
|
@ -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;
|
||||
|
|
|
|||
2
lib.ts
2
lib.ts
|
|
@ -22,7 +22,7 @@ export enum TripleBool {
|
|||
YES = 1,
|
||||
NO = 0
|
||||
}
|
||||
export interface Entry { name: string, url: string, credits: string, updated: TripleBool, links_work: TripleBool, best: boolean };
|
||||
export interface Entry { name: string, url: string, credit: string, updated: TripleBool, links_work: TripleBool, best: boolean };
|
||||
|
||||
export type Change =
|
||||
| { op: "delete"; name: string }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue