Compare commits

...

5 Commits

Author SHA1 Message Date
iyuu.cn
44f5b82650 新增HDfans站点 2020-07-03 13:01:03 +08:00
iyuu.cn
f5a33843e6 v1.8.3 2020-06-18 08:45:40 +08:00
iyuu.cn
7428144aa8 移除SSD站点辅种计数器。 2020-06-18 08:44:57 +08:00
iyuu.cn
cc325dc128 删除无用.cmd批处理 2020-06-10 23:09:20 +08:00
iyuu.cn
3d675ed4bd qBittorrent下载器增加root_folder配置项:是否创建子文件夹 2020-06-10 10:31:40 +08:00
6 changed files with 14 additions and 32 deletions

View File

@@ -1,2 +0,0 @@
@echo off
composer create-project ledccn/iyuuautoreseed:dev-master

View File

@@ -1,5 +0,0 @@
@echo off
chcp 65001
git clone https://gitee.com/ledc/IYUUAutoReseed.git
cd IYUUAutoReseed
php ./iyuu.php

View File

@@ -13,7 +13,7 @@ use IYUU\Library\Table;
class AutoReseed class AutoReseed
{ {
// 版本号 // 版本号
const VER = '1.8.1'; const VER = '1.8.4';
// RPC连接 // RPC连接
private static $links = []; private static $links = [];
// 客户端配置 // 客户端配置
@@ -167,6 +167,7 @@ class AutoReseed
self::$links[$k]['rpc'] = $client; self::$links[$k]['rpc'] = $client;
self::$links[$k]['type'] = $v['type']; self::$links[$k]['type'] = $v['type'];
self::$links[$k]['BT_backup'] = isset($v['BT_backup']) && $v['BT_backup'] ? $v['BT_backup'] : ''; 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(); $result = $client->status();
print $v['type'].''.$v['host']." Rpc连接 [{$result}] \n"; print $v['type'].''.$v['host']." Rpc连接 [{$result}] \n";
// 检查转移做种 (移动配置为真、self::$move为空) // 检查转移做种 (移动配置为真、self::$move为空)
@@ -227,11 +228,14 @@ class AutoReseed
case 'qBittorrent': case 'qBittorrent':
$extra_options['autoTMM'] = 'false'; //关闭自动种子管理 $extra_options['autoTMM'] = 'false'; //关闭自动种子管理
#$extra_options['skip_checking'] = 'true'; //跳校验 #$extra_options['skip_checking'] = 'true'; //跳校验
// 添加任务校验后是否暂停
if (isset($extra_options['paused'])) { if (isset($extra_options['paused'])) {
$extra_options['paused'] = $extra_options['paused'] ? 'true' : 'false'; $extra_options['paused'] = $extra_options['paused'] ? 'true' : 'false';
} else { } else {
$extra_options['paused'] = 'true'; $extra_options['paused'] = 'true';
} }
// 是否创建根目录
$extra_options['root_folder'] = self::$links[$rpcKey]['root_folder'] ? 'true' : 'false';
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 {
@@ -412,16 +416,6 @@ class AutoReseed
$reseedPass = false; $reseedPass = false;
// 特殊站点:种子元数据推送给下载器 // 特殊站点:种子元数据推送给下载器
switch ($siteName) { switch ($siteName) {
case 'ssd':
// 辅种计数器
if ( isset($configALL[$siteName]['count']) ) {
if ( $configALL[$siteName]['count'] > 10) {
$configALL[$siteName]['limit'] = 1;
}
} else {
$configALL[$siteName]['count'] = 0;
}
break;
case 'hdchina': case 'hdchina':
$cookie = isset($configALL[$siteName]['cookie']) ? $configALL[$siteName]['cookie'] : ''; $cookie = isset($configALL[$siteName]['cookie']) ? $configALL[$siteName]['cookie'] : '';
$userAgent = $configALL['default']['userAgent']; $userAgent = $configALL['default']['userAgent'];
@@ -535,12 +529,6 @@ class AutoReseed
case 'hdcity': case 'hdcity':
$url = $_url; $url = $_url;
break; break;
case 'ssd':
// 辅种计数器
if ($ret) {
$configALL[$siteName]['count']++;
}
break;
default: default:
break; break;
} }

View File

@@ -42,6 +42,7 @@ return array(
'host' => 'http://127.0.0.1:8083', 'host' => 'http://127.0.0.1:8083',
'username' => '', 'username' => '',
'password' => '', 'password' => '',
'root_folder'=> 1, // 0不创建根目录1创建根目录
'BT_backup' => 'C:\Users\ASUS\AppData\Local\qBittorrent\BT_backup', // 移动做种必须配置Linux搜索方法find / -name BT_backup 'BT_backup' => 'C:\Users\ASUS\AppData\Local\qBittorrent\BT_backup', // 移动做种必须配置Linux搜索方法find / -name BT_backup
'move' => 0, // 0不移动1移动并辅种2移动且只在当前客户端辅种 'move' => 0, // 0不移动1移动并辅种2移动且只在当前客户端辅种
), ),
@@ -494,6 +495,12 @@ return array(
// 如果需要自动辅种,必须配置 // 如果需要自动辅种,必须配置
'passkey' => '', 'passkey' => '',
), ),
// hdfans
'hdfans' => array(
// 如果需要用下载免费种脚本,须配置(只是自动辅种,可以不配置此项)
'cookie' => '',
// 如果需要自动辅种,必须配置
'passkey' => '',
),
// 配置结束,后面的一行不能删除,必须保留!!! // 配置结束,后面的一行不能删除,必须保留!!!
); );

View File

@@ -75,8 +75,7 @@ IYUU自动辅种工具英文名IYUUAutoReseed是一款PHP语言编
## 需求提交/错误反馈 ## 需求提交/错误反馈
- 点击链接加入QQ群聊【IYUU自动辅种交流】[https://jq.qq.com/?_wv=1027&k=5JOfOlM][1] - QQ群859882209[2000人.入门群]931954050[1000人.进阶群]
- QQ群859882209[入门群]931954050[进阶群]
- 问答社区http://wenda.iyuu.cn - 问答社区http://wenda.iyuu.cn
- 博客https://www.iyuu.cn/ - 博客https://www.iyuu.cn/
- issues https://gitee.com/ledc/IYUUAutoReseed/issues - issues https://gitee.com/ledc/IYUUAutoReseed/issues
@@ -174,8 +173,3 @@ IYUU自动辅种工具英文名IYUUAutoReseed是一款PHP语言编
2. 所捐赠的资源不属于任何个人,而应作为项目或者开发团队的所需开销; 2. 所捐赠的资源不属于任何个人,而应作为项目或者开发团队的所需开销;
3. 如果捐赠了却不希望您的名字出现在这里,可以联系我们进行相应处理; 3. 如果捐赠了却不希望您的名字出现在这里,可以联系我们进行相应处理;
4. 更新有延时,如未能及时更新,可联系我。 4. 更新有延时,如未能及时更新,可联系我。
[1]: https://jq.qq.com/?_wv=1027&k=5JOfOlM
[2]: https://www.iyuu.cn/usr/uploads/2019/12/801558607.png