mirror of
https://gitee.com/ledc/IYUUAutoReseed
synced 2025-05-23 10:05:23 +00:00
新增转移成功跳校验、转移成功删除当前做种功能。
This commit is contained in:
parent
da88f3e7fc
commit
854121884b
@ -587,7 +587,9 @@ class AutoReseed
|
|||||||
$rpcKey = self::$move[0];
|
$rpcKey = self::$move[0];
|
||||||
$type = self::$links[$rpcKey]['type'];
|
$type = self::$links[$rpcKey]['type'];
|
||||||
if ($type == 'qBittorrent') {
|
if ($type == 'qBittorrent') {
|
||||||
#$extra_options['skip_checking'] = "true"; //转移时,跳校验
|
if (isset($configALL['default']['move']['skip_check']) && $configALL['default']['move']['skip_check'] === 1) {
|
||||||
|
$extra_options['skip_checking'] = "true"; //转移成功,跳校验
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
$extra_options = array();
|
$extra_options = array();
|
||||||
}
|
}
|
||||||
@ -598,9 +600,10 @@ class AutoReseed
|
|||||||
*/
|
*/
|
||||||
$log = $info_hash.PHP_EOL.$torrentPath.PHP_EOL.$downloadDir.PHP_EOL.PHP_EOL;
|
$log = $info_hash.PHP_EOL.$torrentPath.PHP_EOL.$downloadDir.PHP_EOL.PHP_EOL;
|
||||||
if ($ret) {
|
if ($ret) {
|
||||||
// 删除做种,不删资源
|
//转移成功时,删除做种,不删资源
|
||||||
#self::$links[$k]['rpc']->delete($torrentDelete);
|
if (isset($configALL['default']['move']['delete_torrent']) && $configALL['default']['move']['delete_torrent'] === 1) {
|
||||||
|
self::$links[$k]['rpc']->delete($torrentDelete);
|
||||||
|
}
|
||||||
// 转移成功的种子,以infohash为文件名,写入缓存
|
// 转移成功的种子,以infohash为文件名,写入缓存
|
||||||
wlog($log, $info_hash, self::$cacheMove);
|
wlog($log, $info_hash, self::$cacheMove);
|
||||||
wlog($log, 'MoveSuccess'.$k);
|
wlog($log, 'MoveSuccess'.$k);
|
||||||
|
@ -56,6 +56,8 @@ return array(
|
|||||||
// 当前路径 => 目标路径
|
// 当前路径 => 目标路径
|
||||||
'/downloads' => '/volume1',
|
'/downloads' => '/volume1',
|
||||||
),
|
),
|
||||||
|
'skip_check' => 0, //转移成功,跳校验
|
||||||
|
'delete_torrent' => 0, //转移成功,删除当前做种
|
||||||
),
|
),
|
||||||
'workingMode' => 0,
|
'workingMode' => 0,
|
||||||
'watch' => '/volume1/downloads',
|
'watch' => '/volume1/downloads',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user