Skip to content

Commit

Permalink
fix(mt): use new apil myPeerStatistics
Browse files Browse the repository at this point in the history
  • Loading branch information
fzlins committed Aug 10, 2024
1 parent 9a10e9f commit 03469a3
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 222 deletions.
65 changes: 20 additions & 45 deletions resource/sites/xp.m-team.cc/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -405,19 +405,35 @@
}
},
"userExtendInfo": {
"page": "/api/member/profile",
"page": "/api/tracker/myPeerStatistics",
"dataType": "json",
"requestMethod": "POST",
"headers": {
"x-api-key": "$site.authToken$"
},
"fields": {
"isLogged": {
"seeding": {
"selector": [
"data.seederCount"
],
"filters": [
"Number(query)"
]
},
"seedingSize": {
"selector": [
"data.seederSize"
],
"filters": [
"Number(query)"
]
},
"uploads": {
"selector": [
"message"
"data.uploadCount"
],
"filters": [
"(query === 'SUCCESS') ? true : false"
"Number(query)"
]
}
}
Expand All @@ -441,47 +457,6 @@
]
}
}
},
"userSeedingTorrents": {
"page": "/api/member/getUserTorrentList",
"parser": "getUserSeedingTorrents.js",
"dataType": "json",
"requestMethod": "POST",
"requestContentType": "application/json",
"headers": {
"x-api-key": "$site.authToken$"
},
"requestData": {
"userid": "$user.id$",
"type": "SEEDING",
"pageNumber": 1,
"pageSize": 200
}
},
"userUploadedTorrents": {
"page": "/api/member/getUserTorrentList",
"dataType": "json",
"requestMethod": "POST",
"requestContentType": "application/json",
"headers": {
"x-api-key": "$site.authToken$"
},
"requestData": {
"userid": "$user.id$",
"type": "UPLOADED",
"pageNumber": 1,
"pageSize": 1
},
"fields": {
"uploads": {
"selector": [
"data.total"
],
"filters": [
"Number(query)"
]
}
}
}
}
}
177 changes: 0 additions & 177 deletions resource/sites/xp.m-team.cc/getUserSeedingTorrents.js

This file was deleted.

0 comments on commit 03469a3

Please sign in to comment.