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