Compare commits

...

13 Commits

Author SHA1 Message Date
iyuu.cn
eabb51c54a fix 2020-06-01 21:51:48 +08:00
iyuu.cn
1e1a7bfc59 $configALL[$siteName]['count'] 初始化。 2020-06-01 21:48:38 +08:00
iyuu.cn
005788827d SSD加入辅种计数器(限制每次辅种10个),降低初次辅种过多ban禁IP的可能性。 2020-06-01 21:45:57 +08:00
iyuu.cn
ffb600c334 新增上报错误种子403状态码,例如:兼容杜比等站已删除种子返回403状态码的情况。 2020-05-18 12:52:57 +08:00
iyuu.cn
290bfbe5c9 优化build.sh编译脚本 2020-05-12 18:41:52 +08:00
iyuu.cn
6ecf4f1d54 更新README.MD 2020-05-06 16:37:54 +08:00
iyuu.cn
c809e8d052 v1.7.9 2020-05-06 12:38:27 +08:00
iyuu.cn
8d7dffbf3d 新增站点:海胆haidan 2020-05-06 12:37:43 +08:00
iyuu.cn
cc50804b40 优化URL获取的代码结构 2020-05-01 09:43:35 +08:00
iyuu.cn
4444aec4fb v1.7.8 2020-04-26 22:15:06 +08:00
iyuu.cn
68e128e5cd 小钢炮安装脚本添加/BT_backup目录挂载至docker 2020-04-26 22:14:14 +08:00
iyuu.cn
ec7032698d 更改文件名与Readme.md 2020-04-17 11:57:06 +08:00
iyuu.cn
5308c691b6 更新Readme.md 2020-04-11 13:59:04 +08:00
10 changed files with 45 additions and 59 deletions

View File

@@ -2,6 +2,6 @@
chcp 65001 chcp 65001
git fetch --all git fetch --all
git reset --hard origin/master git reset --hard origin/master
git pull #git pull
php %cd%\iyuu.php php %cd%\iyuu.php
pause pause

View File

@@ -13,7 +13,7 @@ use IYUU\Library\Table;
class AutoReseed class AutoReseed
{ {
// 版本号 // 版本号
const VER = '1.7.7'; const VER = '1.8.1';
// RPC连接 // RPC连接
private static $links = []; private static $links = [];
// 客户端配置 // 客户端配置
@@ -218,12 +218,15 @@ class AutoReseed
$errmsg = isset($result['result']) ? $result['result'] : '未知错误,请稍后重试!'; $errmsg = isset($result['result']) ? $result['result'] : '未知错误,请稍后重试!';
if (strpos($errmsg, 'http error 404: Not Found') !== false) { if (strpos($errmsg, 'http error 404: Not Found') !== false) {
self::sendNotify('404'); self::sendNotify('404');
} elseif (strpos($errmsg, 'http error 403: Forbidden') !== false) {
self::sendNotify('403');
} }
print "-----RPC添加种子任务失败 [{$errmsg}]" . PHP_EOL.PHP_EOL; print "-----RPC添加种子任务失败 [{$errmsg}]" . PHP_EOL.PHP_EOL;
} }
break; break;
case 'qBittorrent': case 'qBittorrent':
$extra_options['autoTMM'] = 'false'; //关闭自动种子管理 $extra_options['autoTMM'] = 'false'; //关闭自动种子管理
#$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 {
@@ -409,6 +412,16 @@ 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'];
@@ -522,6 +535,12 @@ class AutoReseed
case 'hdcity': case 'hdcity':
$url = $_url; $url = $_url;
break; break;
case 'ssd':
// 辅种计数器
if ($ret) {
$configALL[$siteName]['count']++;
}
break;
default: default:
break; break;
} }
@@ -724,13 +743,11 @@ class AutoReseed
} }
$url = $_url."&passkey=". $configALL[$site]['passkey'] . $ip_type. "&https=1"; $url = $_url."&passkey=". $configALL[$site]['passkey'] . $ip_type. "&https=1";
break; break;
case 'ccfbits':
$url = str_replace('{passkey}', $configALL[$site]['passkey'], $_url);
break;
case 'dicmusic': case 'dicmusic':
$_url = str_replace('{torrent_pass}', $configALL[$site]['passkey'], $_url); $_url = str_replace('{torrent_pass}', $configALL[$site]['passkey'], $_url);
$url = str_replace('{authkey}', $configALL[$site]['authkey'], $_url); $url = str_replace('{authkey}', $configALL[$site]['authkey'], $_url);
break; break;
case 'ccfbits':
case 'hdroute': case 'hdroute':
$url = str_replace('{passkey}', $configALL[$site]['passkey'], $_url); $url = str_replace('{passkey}', $configALL[$site]['passkey'], $_url);
break; break;

View File

@@ -487,6 +487,13 @@ return array(
// 如果需要自动辅种,必须配置 // 如果需要自动辅种,必须配置
'passkey' => '', 'passkey' => '',
), ),
// haidan
'haidan' => array(
// 如果需要用下载免费种脚本,须配置(只是自动辅种,可以不配置此项)
'cookie' => '',
// 如果需要自动辅种,必须配置
'passkey' => '',
),
// 配置结束,后面的一行不能删除,必须保留!!! // 配置结束,后面的一行不能删除,必须保留!!!
); );

View File

@@ -1,6 +1,9 @@
#!/bin/sh #!/bin/sh
#wget -c https://gitee.com/ledc/IYUUAutoReseed/repository/archive/master.zip -O IYUUAutoReseed.zip cd /root
#unzip -o ./IYUUAutoReseed.zip -d /root wget -c https://gitee.com/ledc/IYUUAutoReseed/repository/archive/master.zip -O IYUUAutoReseed.zip
#rm ./IYUUAutoReseed.zip unzip -o ./IYUUAutoReseed.zip -d /root
rm ./IYUUAutoReseed.zip
cd /root/IYUUAutoReseed/docker
chmod +x ./*.sh
docker build -t iyuu:latest . docker build -t iyuu:latest .
docker run -it -v /root/IYUUAutoReseed:/var/www -p 8510:9000 --network bridge --name IYUUAutoReseed --restart always -d iyuu:latest docker run -it -v /root/IYUUAutoReseed:/var/www -p 8510:9000 --network bridge --name IYUUAutoReseed --restart always -d iyuu:latest

View File

@@ -4,5 +4,5 @@ git clone https://gitee.com/ledc/IYUUAutoReseed.git
cd /root/IYUUAutoReseed/docker cd /root/IYUUAutoReseed/docker
chmod +x ./*.sh chmod +x ./*.sh
docker build -t iyuu:latest . docker build -t iyuu:latest .
docker run -it -v /root/IYUUAutoReseed:/var/www -p 8510:9000 --network bridge --name IYUUAutoReseed --restart always -d iyuu:latest docker run -it -v /root/IYUUAutoReseed:/var/www -v /var/lib/qbittorrent/.local/share/data/qBittorrent/BT_backup:/BT_backup -p 8510:9000 --network bridge --name IYUUAutoReseed --restart always -d iyuu:latest
./iyuu.sh ./iyuu.sh

View File

@@ -26,7 +26,11 @@
## 功能 ## 功能
IYUU自动辅种工具目前能对国内大部分的PT站点自动辅种支持下载器集群支持多盘位支持多下载目录支持远程连接等 IYUU自动辅种工具功能分为两大块:自动辅种、自动转移
- 自动辅种目前能对国内大部分的PT站点自动辅种支持下载器集群支持多盘位支持多下载目录支持远程连接等
- 自动转移:可以实现各下载器之间自动转移做种客户端,让下载器各司其职(专职的保种、专职的下载)。
## 原理 ## 原理
IYUU自动辅种工具英文名IYUUAutoReseed是一款PHP语言编写的Private Tracker辅种脚本通过计划任务或常驻内存按指定频率调用transmission、qBittorrent下载软件的API接口提取正在做种的info_hash提交到辅种服务器API接口辅种过程和PT站没有任何交互根据API接口返回的数据拼接种子连接提交给下载器自动辅种各个站点。 IYUU自动辅种工具英文名IYUUAutoReseed是一款PHP语言编写的Private Tracker辅种脚本通过计划任务或常驻内存按指定频率调用transmission、qBittorrent下载软件的API接口提取正在做种的info_hash提交到辅种服务器API接口辅种过程和PT站没有任何交互根据API接口返回的数据拼接种子连接提交给下载器自动辅种各个站点。
@@ -38,13 +42,14 @@ IYUU自动辅种工具英文名IYUUAutoReseed是一款PHP语言编
- 支持微信通知,消息即时达; - 支持微信通知,消息即时达;
- 自动对合集包,进行拆包辅种(暂未开发) - 自动对合集包,进行拆包辅种(暂未开发)
- 安全:所有隐私信息只在本地存储,绝不发送给第三方。 - 安全:所有隐私信息只在本地存储,绝不发送给第三方。
- 拥有专业的问答社区和交流群
## 支持的下载器 ## 支持的下载器
1. transmission 1. transmission
2. qBittorrent 2. qBittorrent
## 支持自动辅种的站点 ## 支持自动辅种的站点
学校、杜比、家园、天空、朋友、馒头、萌猫、我堡、猫站、铂金家、烧包、北洋、TCCF、南洋、TTG、映客、城市、52pt、brobits、备胎、SSD、CHD、ptmsg、leaguehd、聆音、瓷器、hdarea、eastgame(TLF)、1ptba、hdtime、hd4fans、opencd、hdbug、hdstreet、joyhd、u2、upxin(HDU)、oshen、discfan(GZT)、cnscg圣城(已删除)、北邮、CCFBits、dicmusic、天雪、葡萄、HDRoute。 学校、杜比、家园、天空、朋友、馒头、萌猫、我堡、猫站、铂金家、烧包、北洋、TCCF、南洋、TTG、映客、城市、52pt、brobits、备胎、SSD、CHD、ptmsg、leaguehd、聆音、瓷器、hdarea、eastgame(TLF)、1ptba、hdtime、hd4fans、opencd、hdbug、hdstreet、joyhd、u2、upxin(HDU)、oshen、discfan(GZT)、cnscg圣城(已删除)、北邮、CCFBits、dicmusic、天雪、葡萄、HDRoute、伊甸园hdbd、海胆haidan
## 运行环境 ## 运行环境
具备PHP运行环境的所有平台例如Linux、Windows、MacOS 具备PHP运行环境的所有平台例如Linux、Windows、MacOS

View File

@@ -13,7 +13,7 @@
| Google身份验证器谷歌动态口令 | 开发中 | 2020年2月21日 | | | Google身份验证器谷歌动态口令 | 开发中 | 2020年2月21日 | |
| 自动更新 | 开发中 | 2020年2月21日 | | | 自动更新 | 开发中 | 2020年2月21日 | |
| WEB页面生成配置 | 开发中 | 2020年2月21日 | | | WEB页面生成配置 | 开发中 | 2020年2月21日 | |
| 种子删除自动同步 | 开发中 | 2020年2月21日 | | | 种子删除自动同步 | 开发中 | 2020年2月21日 | 2020年5月6日 |
| 脚本docker容器化测试版 | 已完成 | 2020年2月21日 | 2020年2月21日 | | 脚本docker容器化测试版 | 已完成 | 2020年2月21日 | 2020年2月21日 |
| 自动配置(简化配置) | 开发中 | 2020年4月10日 | | | 自动配置(简化配置) | 开发中 | 2020年4月10日 | |
| 浏览器插件 | 暂未开始 | | | | 浏览器插件 | 暂未开始 | | |

View File

@@ -1,46 +0,0 @@
## 404数据最后清理时间
|标志 | 最后清理时间 | 状态 |
| :-: | :-: | ---- |
| 1ptba | 2020年1月19日12:00:00 | 已完成 |
|52pt | 2020年1月19日12:00:00 | 已完成 |
|beitai-备胎 | 2020年1月19日12:00:00 | 已完成 |
|brobits | 2020年1月19日12:00:00 | 已完成 |
|btschool-学校 | 2020年1月19日12:00:00 | 已完成 |
|chdbits-彩虹岛 | 2020年1月19日12:00:00 | 已完成 |
|discfan-港知堂 | 2020年1月19日12:00:00 | 已完成 |
|dmhy-幼儿园 | 2020年1月19日12:00:00 | 已完成 |
|eastgame | 2020年1月19日12:00:00 | 已完成 |
|hd4fans-兽 | | 已完成 |
|hdarea-HDA | | |
|hdbd-伊甸园 | | |
|hdbug(hddisk) | 2020年1月19日12:00:00 | 已完成 |
|hdchina-瓷器 | 2020年1月19日12:00:00 | 已完成 |
|hdcity-城市 | 2020年1月19日12:00:00 | 已完成 |
|hddolby-杜比 | 2020年1月19日12:00:00 | 已完成 |
|hdhome-家园 | 2020年1月19日12:00:00 | 已完成 |
|hdsky-天空 | 2020年1月19日12:00:00 | 已完成 |
|hdstreet | 2020年1月19日12:00:00 | 已完成 |
|hdtime-时间 | 2020年1月19日12:00:00 | 已完成 |
|hdzone-HDZ | 2020年1月19日12:00:00 | 已完成 |
|joyhd | 2020年1月19日12:00:00 | 已完成 |
| keepfrds-朋友 | 2020年1月19日12:00:00 | 已完成 |
|leaguehd | 2020年1月19日12:00:00 | 已完成 |
| m-team-馒头 | 2020年1月19日12:00:00 | 已完成 |
|moecat-萌猫 | 2020年1月19日12:00:00 | 已完成 |
|nanyangpt-南洋 | 2020年1月19日12:00:00 | 已完成 |
|nicept-老师 | | |
|opencd-皇后 | | 已完成 |
|oshen | 2020年1月19日12:00:00 | 已完成 |
|ourbits-我堡 | 2020年1月19日12:00:00 | 已完成 |
|pterclub-猫站 | 2020年1月19日12:00:00 | 已完成 |
|pthome-铂金家 | 2020年1月19日12:00:00 | 已完成 |
|ptmsg | 2020年1月19日12:00:00 | 已完成 |
|ptsbao-烧包 | 2020年1月19日12:00:00 | 已完成 |
|soulvoice-聆音 | 2020年1月19日12:00:00 | 已完成 |
|ssd-春天 | 2020年1月19日12:00:00 | 已完成 |
|tjupt-北洋 | 2020年1月19日12:00:00 | 已完成 |
|torrentccf-TCCF | 2020年1月19日12:00:00 | 已完成 |
| ttg-听听歌 | 2020年1月19日12:00:00 | 已完成 |
| upxin | 2020年1月19日12:00:00 | 已完成 |
| yingk-映客 | 2020年1月19日12:00:00 | 已完成 |