Comments (6)
我用的zip安装模式。找到一个临时补救方法。
把resource/sites/xp.m-team.cc/getUserSeedingTorrents.js
文件里的load()
改成下面的样子。隔几秒重试一次。只是个临时的补救。如果请求一直被屏蔽的话,这个方法会导致无限重试。
/**
* 加载当前页内容
*/
load() {
let url = this.dataURL;
let postData = this.options.rule.requestData;
postData.pageNumber = this.pageInfo.current + 1;
function makeRequest() {
$.ajax({
url,
method: "POST",
dataType: "JSON",
data: JSON.stringify(postData),
contentType: "application/json",
headers: this.options.rule.headers
})
.done(result => {
try {
this.rawData = result;
if (this.rawData.data.data.length > 0) {
this.parse();
} else {
this.done();
}
} catch (error) {
console.error('Error processing mt load result:', error);
setTimeout(() => {
makeRequest.call(this);
}, 8000);
}
})
.fail(() => {
this.done();
});
}
makeRequest.call(this);
}
下面这个加了次数限制。但我没有深入测试。。
function makeRequest(retryCount = 0) {
$.ajax({
url,
method: "POST",
dataType: "JSON",
data: JSON.stringify(postData),
contentType: "application/json",
headers: this.options.rule.headers
})
.done(result => {
try {
this.rawData = result;
if (this.rawData.data.data.length > 0) {
this.parse();
} else {
this.done();
}
} catch (error) {
console.error('Error processing result:', error);
if (retryCount < 2) {
setTimeout(() => {
makeRequest.call(this, retryCount + 1);
}, 8000);
} else {
this.done();
}
}
})
.fail(() => {
this.done();
});
}
// Call the function for the first time
makeRequest.call(this);
from pt-plugin-plus.
Mit | Snow on the beach, [2024/7/3 16:44]
你的保种太多就容易不成功
游戏真有意思, [2024/7/3 16:44]
所以是保种太多丢了一堆请求过去?
Mit | Snow on the beach, [2024/7/3 16:44]
一次请求不完 就第二次第三次
from pt-plugin-plus.
from pt-plugin-plus.
@jiang925 无限千万不行,到时候指不定号就没了
from pt-plugin-plus.
@jiang925 无限千万不行,到时候指不定号就没了
明白。只能临时用一下。我打算手动刷新的时候,如果看一直重试,刷新一下页面就可以终止重试。不过提醒了我,如果半夜自动刷新的时候无限重试的话就可能会跪。
又多测试了一下后面带retry的。在try里面强制生成了一个错误。测试可以retry两次后停止。
from pt-plugin-plus.
建议你每天去馒头群问问什么时候有统计做种情况的api
from pt-plugin-plus.
Related Issues (20)
- 杜比做种状态判断不准确 HOT 1
- 馒头更新api调用url HOT 2
- 2677版不能显示象岛种子详情 HOT 3
- 建议发送到qbittorrent支持添加category HOT 1
- HDAtmos站搜索出来的种子促销信息不对。
- 希望修复一下FSM的时间轴不显示的问题
- HD Dolby 站点保种积分的升级要求需要更新
- M-TEAM 站点优化升级要求需要更新
- m-team七月一日之后刷新数据一直失败,提示403 HOT 1
- ptchina站点无法获取做种数、体积、时魔
- FSM 2693版本显示不正常
- FSM 2693版本显示不正常 HOT 2
- openCD(皇后)无法批量下载种子 HOT 5
- Edge BETA 版本里扩展商店里还是 2022 年更新的 HOT 2
- 关于无法进一步编辑站点的反馈 HOT 5
- 新站点请求
- 新站点请求
- ilolicon等级信息不准确
- Rousi数据不展示
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pt-plugin-plus.