Skip to content

Commit

Permalink
hdr添加seedingList
Browse files Browse the repository at this point in the history
  • Loading branch information
enigmazack authored and Rhilip committed Aug 14, 2021
1 parent c13e6e2 commit 7eb2c0f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
10 changes: 10 additions & 0 deletions resource/sites/hdroute.org/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,16 @@
"filters": ["query.next().text().match(/([\\d.]+ ?[ZEPTGMK]?i?B)/)", "(query && query.length==2)?(query[1]).sizeToNumber():0"]
}
}
},
"userSeedingTorrents": {
"page": "/api.php?action=getAllPeeringInfo",
"dataType": "json",
"fields": {
"seedingList": {
"selector": ["seeding"],
"filters": ["let r=[];query.forEach(q=>{r.push(q.torrentid)});r"]
}
}
}
}
}
2 changes: 2 additions & 0 deletions src/interface/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -522,6 +522,8 @@ export interface UserInfo {
seeding?: number;
// 做种体积
seedingSize?: number;
// 做种列表
seedingList?: string[];
// 当前下载数量
leeching?: number;
// 等级名称
Expand Down

0 comments on commit 7eb2c0f

Please sign in to comment.