mirror of
https://gitee.com/ledc/IYUUAutoReseed
synced 2025-08-24 06:54:51 +00:00
Compare commits
5 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
fa31319399 | ||
|
9597182628 | ||
|
61d3ca843d | ||
|
4a63353d27 | ||
|
07b0b2626d |
@@ -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);
|
||||
|
@@ -1,2 +1,2 @@
|
||||
@echo off
|
||||
composer install
|
||||
composer create-project ledccn/iyuuautoreseed:dev-master
|
2
iyuu.php
2
iyuu.php
@@ -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;
|
||||
|
15
readme.md
15
readme.md
@@ -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
|
||||
|
||||
## 捐助开发者
|
||||
|
Reference in New Issue
Block a user