whar
This commit is contained in:
parent
3e29ef0677
commit
14251de4eb
1 changed files with 4 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue