This code defines two empty objects, 'uploadonehour' and 'uploadonehourlater'. It then defines an asynchronous function that loops through an array of client IDs, retrieves the corresponding client data, and filters the torrents to only include those with a category of 'hdsky'.

For each of these torrents, the function checks if the time since it was added (in seconds) is less than 35240 (which is approximately 9.79 hours). If it is, the current upload amount for that torrent is added to the 'uploadonehour' object using the torrent's name as the key.

Then, the function calculates the difference between the current upload amount and the amount recorded in 'uploadonehour', and adds this difference to the 'uploadonehourlater' object using the same key. Finally, the function logs the recorded upload amounts for each torrent.

Node.js 脚本:跟踪 HDSky 种子上传量

原文地址: https://www.cveoy.top/t/topic/l0jW 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录