mirror of
				https://gitee.com/ledc/IYUUAutoReseed
				synced 2025-10-31 00:39:50 +00:00 
			
		
		
		
	qBittorrent下载器增加root_folder配置项:是否创建子文件夹
This commit is contained in:
		| @@ -13,7 +13,7 @@ use IYUU\Library\Table; | ||||
| class AutoReseed | ||||
| { | ||||
|     // 版本号 | ||||
|     const VER = '1.8.1'; | ||||
|     const VER = '1.8.2'; | ||||
|     // RPC连接 | ||||
|     private static $links = []; | ||||
|     // 客户端配置 | ||||
| @@ -167,6 +167,7 @@ class AutoReseed | ||||
|                 self::$links[$k]['rpc'] = $client; | ||||
|                 self::$links[$k]['type'] = $v['type']; | ||||
|                 self::$links[$k]['BT_backup'] = isset($v['BT_backup']) && $v['BT_backup'] ? $v['BT_backup'] : ''; | ||||
|                 self::$links[$k]['root_folder'] = isset($v['root_folder']) ? $v['root_folder'] : 1; | ||||
|                 $result = $client->status(); | ||||
|                 print $v['type'].':'.$v['host']." Rpc连接 [{$result}] \n"; | ||||
|                 // 检查转移做种 (移动配置为真、self::$move为空) | ||||
| @@ -227,11 +228,14 @@ class AutoReseed | ||||
|                 case 'qBittorrent': | ||||
|                     $extra_options['autoTMM'] = 'false';	//关闭自动种子管理 | ||||
|                     #$extra_options['skip_checking'] = 'true';    //跳校验 | ||||
|                     // 添加任务校验后是否暂停 | ||||
|                     if (isset($extra_options['paused'])) { | ||||
|                         $extra_options['paused'] = $extra_options['paused'] ? 'true' : 'false'; | ||||
|                     } else { | ||||
|                         $extra_options['paused'] = 'true'; | ||||
|                     } | ||||
|                     // 是否创建根目录 | ||||
|                     $extra_options['root_folder'] = self::$links[$rpcKey]['root_folder'] ? 'true' : 'false'; | ||||
|                     if ($is_url) { | ||||
|                         $result = self::$links[$rpcKey]['rpc']->add($torrent, $save_path, $extra_options);			// 种子URL添加下载任务 | ||||
|                     } else { | ||||
|   | ||||
| @@ -42,6 +42,7 @@ return array( | ||||
|                 'host'	=>	'http://127.0.0.1:8083', | ||||
|                 'username'	=>	'', | ||||
|                 'password'	=>	'', | ||||
|                 'root_folder'=> 1,   // 0不创建根目录,1创建根目录 | ||||
|                 'BT_backup' =>  'C:\Users\ASUS\AppData\Local\qBittorrent\BT_backup',    // 移动做种:必须配置,Linux搜索方法:find / -name BT_backup | ||||
|                 'move'      =>  0,      // 0不移动,1移动并辅种,2移动且只在当前客户端辅种 | ||||
|             ), | ||||
|   | ||||
| @@ -75,8 +75,7 @@ IYUU自动辅种工具(英文名:IYUUAutoReseed),是一款PHP语言编 | ||||
|  | ||||
|  | ||||
| ## 需求提交/错误反馈 | ||||
|  - 点击链接加入QQ群聊【IYUU自动辅种交流】:[https://jq.qq.com/?_wv=1027&k=5JOfOlM][1] | ||||
|  - QQ群:859882209[入门群],931954050[进阶群] | ||||
|  - QQ群:859882209[2000人.入门群],931954050[1000人.进阶群] | ||||
|  - 问答社区:http://wenda.iyuu.cn | ||||
|  - 博客:https://www.iyuu.cn/ | ||||
|  - issues: https://gitee.com/ledc/IYUUAutoReseed/issues  | ||||
| @@ -174,8 +173,3 @@ IYUU自动辅种工具(英文名:IYUUAutoReseed),是一款PHP语言编 | ||||
| 2.  所捐赠的资源不属于任何个人,而应作为项目或者开发团队的所需开销;  | ||||
| 3.  如果捐赠了却不希望您的名字出现在这里,可以联系我们进行相应处理; | ||||
| 4.  更新有延时,如未能及时更新,可联系我。 | ||||
|  | ||||
|  | ||||
|  | ||||
| [1]: https://jq.qq.com/?_wv=1027&k=5JOfOlM | ||||
| [2]: https://www.iyuu.cn/usr/uploads/2019/12/801558607.png | ||||
		Reference in New Issue
	
	Block a user