Skip to content

Commit

Permalink
Fix statistics for TTG site
Browse files Browse the repository at this point in the history
  • Loading branch information
EraserKing authored and vertex-app committed Feb 1, 2024
1 parent 332a391 commit 4eabf5a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/libs/site/ToTheGlory.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ class Site {
info.download = document.querySelector('font[color=darkred]').nextElementSibling.children[0].innerHTML.trim().replace(/(\w)B/, '$1iB');
info.download = util.calSize(...info.download.split(' '));
// 做种
info.seeding = +document.querySelector('img[src="/pic/arrowup.gif"]').nextSibling.nodeValue.trim();
info.seeding = +document.querySelector('img[src="/pic/arrowup.gif"]').nextElementSibling.textContent;
// 下载
info.leeching = +document.querySelector('img[src="/pic/arrowdown.gif"]').nextSibling.nodeValue.trim();
info.leeching = +document.querySelector('img[src="/pic/arrowdown.gif"]').nextElementSibling.textContent;
// 做种体积
const seedingDocument = await this._getDocument(`${this.index}userdetails.php?id=${info.uid}`);
const seedingTorrent = [...seedingDocument.querySelectorAll('#ka2 tr')];
Expand Down

0 comments on commit 4eabf5a

Please sign in to comment.