Compare commits

..

7 Commits

9 changed files with 61 additions and 10 deletions

View File

@@ -13,7 +13,7 @@ use IYUU\Library\Table;
class AutoReseed
{
// 版本号
const VER = '1.5.3';
const VER = '1.5.8';
// 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

@@ -9,7 +9,7 @@ use Curl\Curl;
class Oauth
{
// 合作的站点
public static $sites = ['ourbits'];
public static $sites = ['ourbits','hddolby'];
// 爱语飞飞token
public static $token = '';
// 合作站点用户id

View File

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

View File

@@ -144,12 +144,13 @@ return array(
),
),
),
// HDSky 序号4
'hdsky' => array(
// hddolby 序号4
'hddolby' => array(
// 如果需要用下载免费种脚本,须配置(只是自动辅种,可以不配置此项)
'cookie' => '',
// 如果需要自动辅种,必须配置
'passkey' => '',
'id' => 0, // 用户ID(不是用户名)
),
// pter 序号5
'pter' => array(
@@ -186,8 +187,8 @@ return array(
// 如果需要自动辅种,必须配置
'passkey' => '',
),
// hddolby 序号10
'hddolby' => array(
// HDSky 序号10
'hdsky' => array(
// 如果需要用下载免费种脚本,须配置(只是自动辅种,可以不配置此项)
'cookie' => '',
// 如果需要自动辅种,必须配置

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
## 捐助开发者
@@ -127,6 +142,23 @@ http://api.iyuu.cn/docs.php
| JeSsiE杰西 | ¥66元 | 2020年2月20日19:38 |
| 黄叶梓(炮王) | ¥10元 | 2020年2月20日21:10 |
| 里奥龙 | ¥88.8元 | 2020年2月20日21:48 |
| 寒山先生 | ¥200元 | 2020年2月21日17:32 |
| 李永超 | ¥10元 | 2020年2月22日16:24 |
| Always | ¥5元 | 2020年2月22日21:31 |
| 车站 | ¥30元 | 2020年2月22日21:32 |
| 寒山先生 | ¥200元 | 2020年2月23日22:21 |
| 莫凡 | ¥10元 | 2020年2月24日19:43 |
| 未署名 | ¥200元 | 2020年2月25日14:36 |
| 锦年 | ¥6.66元 | 2020年2月25日19:00 |
| 金力 | ¥10元 | 2020年2月26日22:45 |
| 飞翔鱼 | ¥100元 | 2020年2月24日17:58 |
| 团 | ¥1元 | 2020年2月29日1:12 |
| 沙鸥 | ¥10元 | 2020年2月29日17:03 |
| lsy | ¥229.5元 | 2020年3月1日15:15 |
| 慧宇 | ¥30元 | 2020年3月3日16:39 |
| sz贺贺 | ¥100元 | 2020年3月7日14:40 |
| 一介凡人 | ¥8.88元 | 2020年3月9日22:34 |
| | | |
补充说明:

View File

@@ -103,7 +103,7 @@ IYUU自动辅种工具、Ourbits双方达成合作可以对使用接口的用
链接https://share.weiyun.com/57uYFrn 密码gurkdc
下载回来是一个ZIP压缩包解压到`D:\IYUUAutoReseed\`目录内,文件结构如图:
![编辑配置7.png][14]
点击红框内`执行辅种`即可。
点击红框内`执行辅种`即可,也可以运行命令:`php iyuu.php`
如果你前期严格按照配置一步步操作,这里会正常显示跑动的辅种列表。正常如图:
![编辑配置8.png][15]

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