1. 优化部分站点做种体积获取,减少网站访问次数

2. 支持oldtoons,reelflix
This commit is contained in:
ngfchl
2022-12-27 15:22:28 +08:00
parent 3a54efe35e
commit ed01e06cd6
4 changed files with 450 additions and 89 deletions

View File

@@ -7,7 +7,7 @@ function renderSize(value) {
var srcsize = parseFloat(value);
index = Math.floor(Math.log(srcsize) / Math.log(1024));
var size = srcsize / Math.pow(1024, index);
size = size.toFixed(2);//保留的小数位数
size = size.toFixed(3);//保留的小数位数
return size + ' ' + unitArr[index];
}