Compare commits

...

5 Commits

6 changed files with 37 additions and 4 deletions

View File

@@ -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();
// 客户端配置
@@ -44,7 +44,7 @@ class AutoReseed
private static $curl = null;
// 退出状态码
public static $ExitCode = 0;
// 客户端转移做种
// 客户端转移做种 格式:['客户端key', '移动参数move']
private static $move = null;
// 微信消息体
private static $wechatMsg = 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 {
@@ -325,6 +329,11 @@ class AutoReseed
// 种子id
$torrent_id = $value['torrent_id'];
// 站点名
if (empty($sites[$sid]['site'])) {
echo '-----当前站点不受支持,已跳过。' .PHP_EOL.PHP_EOL;
self::$wechatMsg['reseedSkip']++;
continue;
}
$siteName = $sites[$sid]['site'];
// 错误通知
self::setNotify($siteName, $sid, $torrent_id);

View File

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

View File

@@ -1,5 +1,7 @@
<?php
require_once __DIR__ . '/init.php';
echo __FILE__.PHP_EOL;
sleep(3);
use IYUU\AutoReseed;
echo microtime(true).' IYUU自动辅种正在初始化...'.PHP_EOL;

View File

@@ -10,6 +10,20 @@
第三您使用IYUU工具造成的一切损失与IYUU无关。如不接受此条款请不要使用IYUUAutoReseed并立刻删除已经下载的源码。
## 安装脚本,三种方式皆可
1. 通过git命令安装
`git clone https://github.com/ledccn/IYUUAutoReseed.git`
2. 通过composer命令安装
`composer create-project ledccn/iyuuautoreseed:dev-master`
3. 直接下载zip源码包
`https://github.com/ledccn/IYUUAutoReseed/archive/master.zip`
## 功能
IYUU自动辅种工具目前能对国内大部分的PT站点自动辅种支持下载器集群支持多盘位支持多下载目录支持远程连接等。
@@ -57,6 +71,7 @@ http://api.iyuu.cn/docs.php
## 需求提交/错误反馈
- 点击链接加入群聊【IYUU自动辅种交流】[https://jq.qq.com/?_wv=1027&k=5JOfOlM][1]
- QQ群859882209
- 问答社区http://wenda.iyuu.cn
- issues https://gitee.com/ledc/IYUUAutoReseed/issues
## 捐助开发者

7
更新与辅种.cmd Normal file
View File

@@ -0,0 +1,7 @@
@echo off
chcp 65001
git fetch --all
git reset --hard origin/master
git pull
%cd%\php-7.4.2-nts-Win32-vc15-x86\php %cd%\iyuu.php
pause