mirror of
https://gitee.com/ledc/IYUUAutoReseed
synced 2025-05-23 10:05:23 +00:00
紧急修复:qBittorrent的paused自动暂停参数为字符串的bug(此问题为上次转移做种配置项添加自定义后留下来的问题。)
This commit is contained in:
parent
755bb1d526
commit
07b0b2626d
@ -13,7 +13,7 @@ use IYUU\Library\Table;
|
||||
class AutoReseed
|
||||
{
|
||||
// 版本号
|
||||
const VER = '1.5.3';
|
||||
const VER = '1.5.7';
|
||||
// RPC连接
|
||||
private static $links = array();
|
||||
// 客户端配置
|
||||
@ -213,7 +213,11 @@ class AutoReseed
|
||||
break;
|
||||
case 'qBittorrent':
|
||||
$extra_options['autoTMM'] = 'false'; //关闭自动种子管理
|
||||
$extra_options['paused'] = isset($extra_options['paused']) ? $extra_options['paused'] : true;
|
||||
if (isset($extra_options['paused'])) {
|
||||
$extra_options['paused'] = $extra_options['paused'] ? 'true' : 'false';
|
||||
}else {
|
||||
$extra_options['paused'] = 'true';
|
||||
}
|
||||
if ($is_url) {
|
||||
$result = self::$links[$rpcKey]['rpc']->add($torrent, $save_path, $extra_options); // 种子URL添加下载任务
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user