新增上报错误种子403状态码,例如:兼容杜比等站已删除种子返回403状态码的情况。

This commit is contained in:
iyuu.cn 2020-05-18 12:51:28 +08:00
parent 290bfbe5c9
commit ffb600c334

View File

@ -218,6 +218,8 @@ class AutoReseed
$errmsg = isset($result['result']) ? $result['result'] : '未知错误,请稍后重试!';
if (strpos($errmsg, 'http error 404: Not Found') !== false) {
self::sendNotify('404');
} else if (strpos($errmsg, 'http error 403: Forbidden') !== false) {
self::sendNotify('403');
}
print "-----RPC添加种子任务失败 [{$errmsg}]" . PHP_EOL.PHP_EOL;
}