This commit is contained in:
Lilith Ashley Nyx Arson 🔥 2024-11-03 23:15:08 +01:00
parent 3e29ef0677
commit 14251de4eb
Signed by: lilith
SSH key fingerprint: SHA256:LAjgsAMyT3LO2JVtr6fQ4N3RTYoRRlIm5wAKsbDife4

View file

@ -12,8 +12,8 @@ fetch(host.replace("%", "torr")).then(r => r.text()).then(r => {
var i = {
"S": "\uf062",
"P": "\uf063",
"L": "\uf46f"
"L": "\uf063",
"P": "\uf1eb",
}
fetch(host.replace("%", "top10")).then(r => r.text()).then(r => {
@ -33,7 +33,8 @@ fetch(host.replace("%", "top10")).then(r => r.text()).then(r => {
num: parseInt(segments[0]),
hash: segments[1]
}
hashes[info.hash] = hashes[info.hash] ?? { seeds: 0, peers: 0, leechers: 0 };
hashes[info.hash] = hashes[info.hash] ?? { peers: 0, seeds: 0, leechers: 0 };
hashes[info.hash][current] = hashes[info.hash][current] ?? 0;
hashes[info.hash][current] += info.num;