Compare commits

...

118 Commits

Author SHA1 Message Date
david
849370e26a 优化docker 2020-12-22 00:14:52 +08:00
david
815156b252 修复重复注入拼接规则bug 2020-12-14 15:16:51 +08:00
david
d62be67927 修改docker定时 2020-12-14 11:47:59 +08:00
david
d513b1bedf 修改 Dockerfile 2020-12-14 02:36:38 +08:00
david
b566181968 优化辅种前置检查 2020-12-13 21:06:13 +08:00
david
60b4939aee fix 2020-12-12 15:47:08 +08:00
david
dad8afa8d4 fix 2020-12-12 15:16:54 +08:00
david
a60e5f859c 补充新规则的配置参数 2020-12-12 14:46:49 +08:00
david
59622691e1 重要更新:
1.hdhome、pthome、ourbits,加入新的辅种下载规则;
2.新增支持HDAI站点。
3.合作站验证参数,改为云端获取;
4.辅种检查参数,改为云端获取。
2020-12-12 14:29:12 +08:00
david
3a97c17e66 编辑示例配置注释 2020-12-06 21:49:33 +08:00
david
6d3b937097 新增3群号码 2020-12-01 13:54:22 +08:00
david
4277568346 新增站点:pttime 2020-11-30 16:27:49 +08:00
david
84f75ea443 移除失效站点信息,优化代码 2020-11-13 00:23:36 +08:00
david
715be0e7eb 修正注释描述 2020-11-04 15:00:54 +08:00
david
6eebc7d26c 修改ttg配置的顺序 2020-09-04 23:45:52 +08:00
david
30410735af 新增合作站点:chdbits
更新方法:依据最新示例配置,增加一行ID配置。
2020-08-31 23:54:02 +08:00
david
99a2894f37 新增站点:百川PT 2020-08-26 14:09:46 +08:00
iyuu.cn
13b176c4a1 更新readme.md 2020-08-11 19:18:39 +08:00
iyuu.cn
afca458acc 更改转移参数,默认暂停 2020-08-11 19:17:45 +08:00
iyuu.cn
b8b05ff3bf 新增辅种站点:龙之家dragonhd 2020-08-11 18:16:16 +08:00
iyuu.cn
d402d30aac 更改定时任务时间 2020-08-07 17:47:13 +08:00
iyuu.cn
11c976d2c0 增强检查,避免空参数使用backup.sh时,造成问题。 2020-08-06 23:04:33 +08:00
iyuu.cn
630dc3af92 优先检查passkey,排除用户没有的站点 2020-08-06 14:36:04 +08:00
iyuu.cn
463e45ee38 优化日志记录方式 2020-08-05 19:08:06 +08:00
iyuu.cn
b046ecc75f 示例配置新增教程 2020-08-03 22:54:15 +08:00
iyuu.cn
468813a057 编辑:更新历史.md 2020-08-02 23:10:07 +08:00
iyuu.cn
fdd5475e37 兼容qBittorrent v4.1.5【小钢炮等】 2020-08-02 15:39:25 +08:00
iyuu.cn
1f4da154fb 优化Windows批处理 2020-08-02 00:11:31 +08:00
iyuu.cn
419b6eb8cd fix 2020-08-01 22:43:44 +08:00
iyuu.cn
289df1e126 优化windows执行辅种批处理 2020-08-01 15:42:54 +08:00
iyuu.cn
4d86a9cb9f Readme.md新增Docker使用方法介绍 2020-07-31 17:09:24 +08:00
iyuu.cn
c79d5e4592 v1.10.2版本以后的docker,每5小时会自动拉取最新代码;从此,您只需要看公告更新配置就行啦。 2020-07-31 09:34:18 +08:00
iyuu.cn
c9fb5c6a6a 更改Dockerfile,每5小时自动拉取最新代码 2020-07-31 09:17:57 +08:00
iyuu.cn
a744f5e785 更改本地ARM平台打包标签为:iyuu:arm64v8 2020-07-31 07:59:55 +08:00
iyuu.cn
84394c3a71 精简配置,移除容易迷惑人的项目 2020-07-31 07:52:00 +08:00
iyuu.cn
fd61ee86a1 新增.dockerignore,排除编译不必要的文件 2020-07-31 07:47:11 +08:00
iyuu.cn
afe1a863ac 移除Arm64v8.Dockerfile 2020-07-30 21:00:10 +08:00
iyuu.cn
2a7947b9fa bash+ 2020-07-30 15:19:18 +08:00
iyuu.cn
fa6a38b7b3 移除swoft/alphp:base 2020-07-30 14:44:35 +08:00
iyuu.cn
02eb245ae0 更新Arm64v8.Dockerfile,测试自动编译。 2020-07-30 14:34:14 +08:00
iyuu.cn
3fc4e14b93 优化docker的Readme.md注释 2020-07-29 19:12:16 +08:00
iyuu.cn
6a5d375044 修复编码错误。 2020-07-29 16:00:43 +08:00
iyuu.cn
da0cb81ab2 修复笔误。 2020-07-29 15:28:48 +08:00
iyuu.cn
41ebed71c7 本地编译更改基础镜像为arm64v8/alpine:3.12,并使用国内镜像源 2020-07-29 15:26:12 +08:00
iyuu.cn
05426489f0 新增Docker自动Builds文件Arm64v8.Dockerfile; 2020-07-29 15:25:07 +08:00
iyuu.cn
8489b07b35 精简和优化readme中相关项目说明 2020-07-29 15:20:22 +08:00
iyuu.cn
3e28685731 Dockerfile使用官方源 2020-07-29 03:02:53 +08:00
iyuu.cn
2d5ab5ae9b 新增Dockerfile 2020-07-29 02:14:37 +08:00
iyuu.cn
fa61ad21e0 优化hdsky下载url后的显示效果。 2020-07-29 00:37:23 +08:00
iyuu.cn
1f95e62d95 v1.10.0 2020-07-29 00:32:47 +08:00
iyuu.cn
a84b193d14 调整hdsky流控参数20/20,适配天空辅种。 2020-07-29 00:29:54 +08:00
iyuu.cn
e2dddfdead 新增AMD64平台docker构建脚本 2020-07-28 08:33:40 +08:00
iyuu.cn
f78e9c737c 新增Docker构建amd64镜像 2020-07-28 06:49:26 +08:00
iyuu.cn
8813afbd73 新增docker镜像Arm64v8 2020-07-28 03:27:59 +08:00
iyuu.cn
8b1bd9cdb5 fix 2020-07-25 20:37:57 +08:00
iyuu.cn
5418c02227 修复缺少isset($configALL['notify_on_change'])判断警告 2020-07-24 16:03:59 +08:00
iyuu.cn
a9d9fb637d 当配置不存在时,生成配置后再延时提示。 2020-07-24 14:01:03 +08:00
iyuu.cn
4247457cb6 更新readme.md相关项目 2020-07-24 13:27:34 +08:00
iyuu.cn
0047450161 更新readme.md相关项目;修改微信通知支持条件触发:有变化才发送通知(辅种成功 + 失败 > 0)。 2020-07-24 13:16:24 +08:00
iyuu.cn
15f9905004 合并hxsf提交,修改buile.sh 2020-07-24 13:07:05 +08:00
David
63b2bfc2bc Merge pull request #17 from hxsf/master
some features
2020-07-24 13:50:37 +08:00
hxsf
c5c2feb9d3 add notify_on_change feature 2020-07-24 13:39:22 +08:00
hxsf
6c06d9fb6a add new DockerFile and docker-compose example 2020-07-24 13:36:33 +08:00
iyuu.cn
6578397ee3 更新相关项目4个。 2020-07-23 19:53:01 +08:00
iyuu.cn
29c2e43405 首次运行生成config.php;提高瓷器、城市兼容性。 2020-07-23 18:47:06 +08:00
iyuu.cn
18cdd7abed 新增pthome流控参数 2020-07-22 21:21:59 +08:00
iyuu.cn
4fbf795811 增强客户端空密码检查 2020-07-22 03:28:42 +08:00
iyuu.cn
88ebc12ce5 微信报表新增失败详情提示 2020-07-21 19:42:17 +08:00
iyuu.cn
08b4b58083 新增hddolby流控参数 2020-07-21 19:24:04 +08:00
iyuu.cn
ca02231431 加入github徽章 2020-07-21 16:43:21 +08:00
iyuu.cn
7d638eba40 新增hdhome流控参数 2020-07-19 17:20:27 +08:00
iyuu.cn
c35c23583c 新增Ourbits、SSD、hdchina、hdsky、moecat、pt等站点的流控规则 2020-07-18 14:34:07 +08:00
iyuu.cn
b2b9000a86 优化代码结构 2020-07-17 23:02:21 +08:00
iyuu.cn
b80a5b89cc 更新Readme.md 2020-07-17 20:39:45 +08:00
iyuu.cn
c2e5b4d00b 新增移动做种微信报告 2020-07-17 19:55:53 +08:00
iyuu.cn
207320ede7 fix 2020-07-16 20:59:41 +08:00
iyuu.cn
6e1653fc1e fix 2020-07-14 16:44:28 +08:00
iyuu.cn
32ec80d552 提高对旧配置的兼容性 2020-07-14 02:13:20 +08:00
iyuu.cn
2b989f9e0e 新增瓷器、城市cookie过期微信通知 2020-07-13 10:19:36 +08:00
iyuu.cn
ff16781da9 fix 2020-07-13 08:47:00 +08:00
iyuu.cn
6a01b492ce 更新公告栏 2020-07-13 07:58:39 +08:00
iyuu.cn
de41bc0131 1.优化App.Api.Sites接口带版本号请求;2.新增异步间隔流控算法:各站独立、执行时间最优;3.config.sample.php各站点新增url_replace、url_join、limitRule参数。 2020-07-13 07:32:15 +08:00
iyuu.cn
6b83e9081b fix:优化代码 2020-07-12 21:29:41 +08:00
iyuu.cn
87f06ec5c4 接口域名部署SSL证书,支持双协议http/https。如:https://api.iyuu.cn 2020-07-12 19:39:19 +08:00
iyuu.cn
8a051d4d1f fix:优化转移做种时过滤器、选择器提示顺序。 2020-07-11 20:39:09 +08:00
iyuu.cn
0e32e625a4 新增功能:转移过滤器、选择器;可以只转移指定路径的种子,也可以排除指令路径的种子,按需转移。 2020-07-11 18:09:04 +08:00
iyuu.cn
a09dacbd20 优化微信通知提示 2020-07-11 02:46:59 +08:00
iyuu.cn
e3a9c32174 微信通知增加辅种缓存位置提示。 2020-07-10 19:33:51 +08:00
iyuu.cn
c8a94bfcff 优化代码结构,美化微信通知消息,删除多余的运行提示信息等 2020-07-10 19:17:12 +08:00
iyuu.cn
fd87d07539 更新md文档 2020-07-03 17:20:25 +08:00
iyuu.cn
df7100e4e9 更新QQ群信息:859882209、931954050 2020-07-03 17:19:51 +08:00
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
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
iyuu.cn
c7f4859cb7 新增支持站点伊甸园hdbd。 2020-04-11 10:16:25 +08:00
iyuu.cn
dc651174b8 v1.7.6 2020-04-07 23:19:28 +08:00
iyuu.cn
a95e579cf6 v1.7.6 2020-04-07 23:00:29 +08:00
iyuu.cn
4811937f42 优化注释 2020-04-06 15:03:19 +08:00
iyuu.cn
f9674c1898 微信报表,增加脚本版本号显示 2020-04-06 15:03:04 +08:00
iyuu.cn
2fdacc6936 更新教程 2020-04-06 15:02:06 +08:00
iyuu.cn
a2034f2840 新增合作站点MoeCat 2020-04-03 22:27:08 +08:00
iyuu.cn
4894464fdd 优化部分php环境CURLOPT_SSL_VERIFYHOST参数设置为false后,卡顿问题。 2020-04-03 21:03:58 +08:00
iyuu.cn
c90acbec6c 路径转换方法:提高替换模式的兼容性。 2020-04-03 12:19:03 +08:00
42 changed files with 1615 additions and 710 deletions

2
.dockerignore Normal file
View File

@@ -0,0 +1,2 @@
.git
*

4
1.Windows辅种.cmd Normal file
View File

@@ -0,0 +1,4 @@
@echo off
chcp 65001
%~dp0php\php %~dp0iyuu.php
pause

View File

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

View File

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

View File

@@ -1,4 +1,4 @@
@echo off @echo off
chcp 65001 chcp 65001
php %cd%\iyuu.php php %~dp0iyuu.php
pause pause

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

@@ -1,4 +0,0 @@
@echo off
chcp 65001
php D:\IYUUAutoReseed\iyuu.php
exit

112
Dockerfile Normal file
View File

@@ -0,0 +1,112 @@
#FROM alpine:latest
#FROM alpine:3.12
FROM alpine:3.8
#FROM swoft/alphp:base
#FROM swoft/alphp:cli
LABEL maintainer="david <367013672@qq.com>" version="1.0"
##
# ---------- env settings ----------
##
# --build-arg timezone=Asia/Shanghai
ARG timezone
# prod pre test dev
ARG app_env=prod
# default use www-data user
# ARG add_user=www-data
ENV APP_ENV=${app_env:-"prod"} \
TIMEZONE=${timezone:-"Asia/Shanghai"} \
cron="3 11 * * *"
##
# ---------- building ----------
##
RUN set -ex \
# change apk source repo
#&& sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/' /etc/apk/repositories \
&& apk update \
&& apk add --no-cache \
# Install base packages ('ca-certificates' will install 'nghttp2-libs')
# ca-certificates \
# curl \
# tar \
# xz \
# libressl \
# openssh \
# openssl \
git \
tzdata \
# pcre \
# install php7 and some extensions
php7 \
# php7-common \
# php7-bcmath \
php7-curl \
# php7-ctype \
php7-dom \
# php7-fileinfo \
# php7-gettext \
# php7-gd \
# php7-iconv \
# php7-imagick \
php7-json \
php7-mbstring \
#php7-mongodb \
# php7-mysqlnd \
# php7-openssl \
# php7-opcache \
# php7-pdo \
# php7-pdo_mysql \
# php7-pdo_sqlite \
# php7-phar \
# php7-pcntl \
# php7-posix \
# php7-redis \
php7-simplexml \
# php7-sockets \
# php7-sodium \
# php7-sqlite \
# php7-session \
# php7-sysvshm \
# php7-sysvmsg \
# php7-sysvsem \
# php7-tokenizer \
php7-zip \
# php7-zlib \
php7-xml \
&& git clone https://gitee.com/ledc/IYUUAutoReseed.git /IYUU \
&& cp /IYUU/config/config.sample.php /IYUU/config/config.php \
&& ln -sf /IYUU/config/config.php /config.php \
&& apk del --purge *-dev \
&& rm -rf /var/cache/apk/* /tmp/* /usr/share/man /usr/share/php7 \
# ---------- some config,clear work ----------
&& cd /etc/php7 \
# - config PHP
&& { \
echo "upload_max_filesize=100M"; \
echo "post_max_size=108M"; \
echo "memory_limit=1024M"; \
echo "date.timezone=${TIMEZONE}"; \
} | tee conf.d/99-overrides.ini \
# - config timezone
&& ln -sf /usr/share/zoneinfo/${TIMEZONE} /etc/localtime \
&& echo "${TIMEZONE}" > /etc/timezone \
&& echo '2 */5 * * * cd /IYUU && git fetch --all && git reset --hard origin/master' >> /etc/crontabs/root \
#&& echo "${cron} /usr/bin/php /IYUU/iyuu.php &> /dev/null" >> /etc/crontabs/root \
# ---------- some config work ----------
# - ensure 'www-data' user exists(82 is the standard uid/gid for "www-data" in Alpine)
# && addgroup -g 82 -S ${add_user} \
# && adduser -u 82 -D -S -G ${add_user} ${add_user} \
# # - create user dir
# && mkdir -p /data \
# && chown -R ${add_user}:${add_user} /data \
&& echo -e "\033[42;37m Build Completed :).\033[0m\n"
# EXPOSE 9000
# VOLUME ["/IYUU", "/data"]
WORKDIR /IYUU
ENTRYPOINT ["/IYUU/docker/entrypoint.sh"]

File diff suppressed because it is too large Load Diff

View File

@@ -82,7 +82,7 @@ class qBittorrent extends AbstractClient
$this->api_version = $api_version; $this->api_version = $api_version;
$this->curl = new Curl(); $this->curl = new Curl();
$this->curl->setOpt(CURLOPT_SSL_VERIFYPEER, false); // 禁止验证证书 $this->curl->setOpt(CURLOPT_SSL_VERIFYPEER, false); // 禁止验证证书
$this->curl->setOpt(CURLOPT_SSL_VERIFYHOST, false); // 不检查证书 $this->curl->setOpt(CURLOPT_SSL_VERIFYHOST, 2); // 不检查证书
$this->curl->setOpt(CURLOPT_CONNECTTIMEOUT, 60); // 超时 $this->curl->setOpt(CURLOPT_CONNECTTIMEOUT, 60); // 超时
$this->curl->setOpt(CURLOPT_TIMEOUT, 600); // 超时 $this->curl->setOpt(CURLOPT_TIMEOUT, 600); // 超时
// Authenticate and get cookie, else throw exception // Authenticate and get cookie, else throw exception
@@ -168,7 +168,7 @@ class qBittorrent extends AbstractClient
$torrents = json_decode($this->torrentList()); $torrents = json_decode($this->torrentList());
$response = ''; $response = '';
foreach ($torrents as $torrent) { foreach ($torrents as $torrent) {
$response .= $this->torrentDelete($torrent->hash, $deleteFiles); $response .= $this->delete($torrent->hash, $deleteFiles);
} }
return $response; return $response;
@@ -236,7 +236,8 @@ class qBittorrent extends AbstractClient
// Find authentication cookie and set in curl connection // Find authentication cookie and set in curl connection
foreach ($this->curl->response_headers as $header) { foreach ($this->curl->response_headers as $header) {
if (preg_match('/SID=(\S[^;]+)/', $header, $matches)) { if (preg_match('/SID=(\S[^;]+)/', $header, $matches)) {
$this->curl->setHeader('Cookie', $matches[0]); $qb415 = '; QB_'.$matches[0]; // 兼容qBittorrent v4.1.5[小钢炮等]
$this->curl->setHeader('Cookie', $matches[0].$qb415);
return true; return true;
} }
}; };

View File

@@ -618,6 +618,10 @@ class transmission extends AbstractClient
$ch = curl_init(); $ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $this->url); curl_setopt($ch, CURLOPT_URL, $this->url);
if (stripos($this->url, 'https://') === 0) {
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); // 禁止验证证书
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2); // 不检查证书
}
curl_setopt($ch, CURLOPT_HTTPHEADER, $header); curl_setopt($ch, CURLOPT_HTTPHEADER, $header);
curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC); curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
curl_setopt($ch, CURLOPT_USERPWD, $this->username . ':' . $this->password); curl_setopt($ch, CURLOPT_USERPWD, $this->username . ':' . $this->password);

View File

@@ -1,9 +1,4 @@
<?php <?php
/**
* @brief 文件处理
* @version 0.6
*/
namespace IYUU\Library; namespace IYUU\Library;
/** /**
@@ -13,7 +8,6 @@ namespace IYUU\Library;
class IFile class IFile
{ {
private $resource = null; //文件资源句柄 private $resource = null; //文件资源句柄
/** /**
* @brief 构造函数,打开资源流,并独占锁定 * @brief 构造函数,打开资源流,并独占锁定
* @param String $fileName 文件路径名 * @param String $fileName 文件路径名
@@ -106,9 +100,10 @@ class IFile
/** /**
* @brief 创建文件夹 * @brief 创建文件夹
* @param String $path 路径 * @param String $path 路径
* @param int $chmod 文件夹权限 * @param int $chmod 文件夹权限
* @note $chmod 参数不能是字符串(加引号)否则linux会出现权限问题 * @note $chmod 参数不能是字符串(加引号)否则linux会出现权限问题
* @return bool
*/ */
public static function mkdir($path, $chmod=0777) public static function mkdir($path, $chmod=0777)
{ {
@@ -119,7 +114,7 @@ class IFile
* @brief 复制文件 * @brief 复制文件
* @param String $from 源文件路径 * @param String $from 源文件路径
* @param String $to 目标文件路径 * @param String $to 目标文件路径
* @param String $mod 操作模式c:复制(默认); x:剪切(删除$from文件) * @param String $mode 操作模式c:复制(默认); x:剪切(删除$from文件)
* @return bool 操作结果 true:成功; false:失败; * @return bool 操作结果 true:成功; false:失败;
*/ */
public static function copy($from, $to, $mode = 'c') public static function copy($from, $to, $mode = 'c')
@@ -184,7 +179,7 @@ class IFile
/** /**
* @brief 获取文件类型 * @brief 获取文件类型
* @param String $fileName 文件名 * @param String $fileName 文件名
* @return String $filetype 文件类型 * @return String|array $filetype 文件类型
* @note 如果文件不存在返回false,如果文件后缀名不在识别列表之内返回NULL对于docx及elsx格式文档识别在会出现识别为ZIP格式的错误这是office2007的bug目前尚未修复请谨慎使用 * @note 如果文件不存在返回false,如果文件后缀名不在识别列表之内返回NULL对于docx及elsx格式文档识别在会出现识别为ZIP格式的错误这是office2007的bug目前尚未修复请谨慎使用
*/ */
public static function getFileType($fileName) public static function getFileType($fileName)

View File

@@ -1,99 +1,101 @@
<?php <?php
/**
* IYUU用户注册、认证
*/
namespace IYUU\Library; namespace IYUU\Library;
use Curl\Curl; use Curl\Curl;
/**
* IYUU用户注册、认证
*/
class Oauth class Oauth
{ {
// 合作的站点
public static $sites = ['ourbits','hddolby','hdhome','pthome'];
// 爱语飞飞token
public static $token = '';
// 合作站点用户id
public static $user_id = 0;
// 合作站点密钥
public static $passkey = '';
// 合作站名字
public static $site = '';
// 登录缓存路径 // 登录缓存路径
public static $SiteLoginCache = ROOT_PATH.DS.'config'.DS.'siteLoginCache_{}.json'; const SiteLoginCache = ROOT_PATH.DS.'config'.DS.'siteLoginCache_{}.json';
/** /**
* 从配置文件内读取爱语飞飞token作为鉴权参数 * 从配置文件内读取爱语飞飞token作为鉴权参数
*/ */
public static function getSign() public static function getSign()
{ {
global $configALL; global $configALL;
// 爱语飞飞 $token = empty($configALL['iyuu.cn']) ? '' : $configALL['iyuu.cn'];
$token = isset($configALL['iyuu.cn']) && $configALL['iyuu.cn'] ? $configALL['iyuu.cn'] : ''; if (empty($token) || strlen($token) < 46) {
if (empty($token) || strlen($token)<46) { echo "缺少辅种接口请求参数爱语飞飞token ".PHP_EOL;
echo "缺少辅种接口请求参数爱语飞飞token \n"; echo "请访问https://iyuu.cn 用微信扫码申请并填入配置文件config.php内。".PHP_EOL.PHP_EOL;
echo "请访问https://iyuu.cn 用微信扫码申请并填入配置文件config.php内。\n\n";
exit(1); exit(1);
} }
return $token; return $token;
} }
/** /**
* 用户注册与登录 * 用户注册与登录
* 作用在服务器端实现微信用户与合作站点用户id的关联 * 作用在服务器端实现微信用户与合作站点用户id的关联
* 参数爱语飞飞token + 合作站点用户id + sha1(合作站点密钥passkey) + 合作站点标识 * 参数爱语飞飞token + 合作站点用户id + sha1(合作站点密钥passkey) + 合作站点标识
* @param string $apiUrl
* @param array $sites
* @return bool
* @throws \ErrorException
*/ */
public static function login($apiUrl = '', $sites = array()) public static function login($apiUrl = '', $sites = array())
{ {
global $configALL; global $configALL;
// 云端下发合作的站点标识 // 云端下发合作的站点标识
self::$sites = $sites ? $sites : self::$sites; if (empty($sites)) {
die('云端下发合作站点信息失败,请稍后重试');
}
$_sites = array_column($sites, 'site');
$ret = false; $ret = false;
self::$token = self::getSign(); $token = self::getSign();
foreach (self::$sites as $name) { foreach ($_sites as $k => $site) {
if (is_file(str_replace('{}', $name, self::$SiteLoginCache))) { if (is_file(str_replace('{}', $site, self::SiteLoginCache))) {
// 存在鉴权缓存 // 存在鉴权缓存
$ret = true; $ret = true;
continue; continue;
} }
if (isset($configALL[$name]['passkey']) && $configALL[$name]['passkey'] && isset($configALL[$name]['id']) && $configALL[$name]['id']) { if (isset($configALL[$site]['passkey']) && $configALL[$site]['passkey'] && isset($configALL[$site]['id']) && $configALL[$site]['id']) {
self::$user_id = $configALL[$name]['id']; $user_id = $configALL[$site]['id'];
self::$passkey = sha1($configALL[$name]['passkey']); // 避免泄露用户passkey秘钥 $passkey = $configALL[$site]['passkey'];
self::$site = $name;
$curl = new Curl(); $curl = new Curl();
$curl->setOpt(CURLOPT_SSL_VERIFYPEER, false); $curl->setOpt(CURLOPT_SSL_VERIFYPEER, false);
$data = [ $data = [
'token' => self::$token, 'token' => $token,
'id' => self::$user_id, 'id' => $user_id,
'passkey'=> self::$passkey, 'passkey'=> sha1($passkey), // 避免泄露用户passkey秘钥
'site' => self::$site, 'site' => $site,
]; ];
$res = $curl->get($apiUrl, $data); $res = $curl->get($apiUrl, $data);
p($res->response); p($res->response);
$rs = json_decode($res->response, true); $rs = json_decode($res->response, true);
if (isset($rs['ret']) && $rs['ret'] == 200 && isset($rs['data']['success']) && $rs['data']['success']) { if (isset($rs['ret']) && ($rs['ret'] === 200) && isset($rs['data']['success']) && $rs['data']['success']) {
self::setSiteLoginCache($name, $rs); self::setSiteLoginCache($site, $rs);
$ret = true; $ret = true;
} else { } else {
$msg = isset($rs['msg']) && $rs['msg'] ? $rs['msg'] : '远端服务器无响应,请稍后重试!'; $msg = !empty($rs['msg']) ? $rs['msg'] : '远端服务器无响应,请稍后重试!';
$msg = isset($rs['data']['errmsg']) && $rs['data']['errmsg'] ? $rs['data']['errmsg'] : $msg; $msg = !empty($rs['data']['errmsg']) ? $rs['data']['errmsg'] : $msg;
echo $msg . PHP_EOL; echo $msg . PHP_EOL;
} }
} else { } else {
echo $name.'合作站点参数配置不完整请同时填写passkey和用户id。' . PHP_EOL; echo $site.'合作站点参数配置不完整请同时填写passkey和用户id。' . PHP_EOL;
echo '合作站点鉴权配置请查阅https://www.iyuu.cn/archives/337/'. PHP_EOL. PHP_EOL; echo '合作站点鉴权配置请查阅https://www.iyuu.cn/archives/337/'. PHP_EOL. PHP_EOL;
} }
} }
return $ret; return $ret;
} }
/** /**
* 写鉴权成功配置 * 写鉴权成功缓存
* @desc 作用:减少对服务器请求,跳过鉴权提示信息;
* @param string $site
* @param array $array
* @return bool|int
*/ */
private static function setSiteLoginCache($key = '', $array = []) private static function setSiteLoginCache($site = '', $array = [])
{ {
$json = json_encode($array, JSON_UNESCAPED_UNICODE); $json = json_encode($array, JSON_UNESCAPED_UNICODE);
$myfile = str_replace('{}', $key, self::$SiteLoginCache); $myfile = str_replace('{}', $site, self::SiteLoginCache);
$file_pointer = @fopen($myfile, "w"); $file_pointer = @fopen($myfile, "w");
$worldsnum = @fwrite($file_pointer, $json); $worldsnum = @fwrite($file_pointer, $json);
@fclose($file_pointer); @fclose($file_pointer);
return $worldsnum;
} }
} }

View File

@@ -1,54 +1,47 @@
<?php <?php
namespace IYUU\Library;
/** /**
* Created by PhpStorm. * Created by PhpStorm.
* User: 大卫 * User: 大卫
* Date: 2020-1-19 * Date: 2020-1-19
* Time: 17:44 * Time: 17:44
*/ */
namespace IYUU\Library;
class Table class Table
{ {
const ALIGN_LEFT = 1; const ALIGN_LEFT = 1;
const ALIGN_RIGHT = 0; const ALIGN_RIGHT = 0;
const ALIGN_CENTER = 2; const ALIGN_CENTER = 2;
/** /**
* 头信息数据 * 头信息数据
* @var array * @var array
*/ */
protected $header = []; protected $header = [];
/** /**
* 头部对齐方式 默认1 ALGIN_LEFT 0 ALIGN_RIGHT 2 ALIGN_CENTER * 头部对齐方式 默认1 ALGIN_LEFT 0 ALIGN_RIGHT 2 ALIGN_CENTER
* @var int * @var int
*/ */
protected $headerAlign = 1; protected $headerAlign = 1;
/** /**
* 表格数据(二维数组) * 表格数据(二维数组)
* @var array * @var array
*/ */
protected $rows = []; protected $rows = [];
/** /**
* 单元格对齐方式 默认1 ALGIN_LEFT 0 ALIGN_RIGHT 2 ALIGN_CENTER * 单元格对齐方式 默认1 ALGIN_LEFT 0 ALIGN_RIGHT 2 ALIGN_CENTER
* @var int * @var int
*/ */
protected $cellAlign = 1; protected $cellAlign = 1;
/** /**
* 单元格宽度信息 * 单元格宽度信息
* @var array * @var array
*/ */
protected $colWidth = []; protected $colWidth = [];
/** /**
* 表格输出样式 * 表格输出样式
* @var string * @var string
*/ */
protected $style = 'default'; protected $style = 'default';
/** /**
* 表格样式定义 * 表格样式定义
* @var array * @var array

View File

@@ -1,5 +1,4 @@
<?php <?php
use IYUU\Library\IFile; use IYUU\Library\IFile;
use IYUU\Library\Table; use IYUU\Library\Table;
@@ -198,14 +197,14 @@ function convertToMB($from)
/** /**
* 字节数Byte转换为KB、MB、GB、TB * 字节数Byte转换为KB、MB、GB、TB
* * @param $num
* @return string
*/ */
function getFilesize($num) function getFilesize($num)
{ {
$p = 0; $p = 0;
$format='bytes'; $format='bytes';
if ($num>0 && $num<1024) { if ($num>0 && $num<1024) {
$p = 0;
return number_format($num).' '.$format; return number_format($num).' '.$format;
} }
if ($num>=1024 && $num<pow(1024, 2)) { if ($num>=1024 && $num<pow(1024, 2)) {
@@ -394,8 +393,9 @@ function sign($timestamp)
/** /**
* @brief 分离token中的用户uid * @brief 分离token中的用户uid
* token算法IYUU + uid + T + sha1(openid+time+盐) * @desc token算法IYUU + uid + T + sha1(openid+time+盐)
* @param string $token 用户请求token * @param string $token 用户请求token
* @return bool|string
*/ */
function getUid($token) function getUid($token)
{ {
@@ -457,3 +457,12 @@ function isWin()
{ {
return (DIRECTORY_SEPARATOR == '\\') ? true : false; return (DIRECTORY_SEPARATOR == '\\') ? true : false;
} }
function sleepIYUU($t, $msg)
{
echo $msg . PHP_EOL;
do {
echo microtime(true).$msg.' '.$t.'秒后继续...'.PHP_EOL;
sleep(1);
} while (--$t > 0);
}

View File

@@ -2,10 +2,16 @@
# 传入的种子备份参数 # 传入的种子备份参数
if [ $1 ]; then if [ $1 ]; then
AppName=$1 AppName=$1
else
echo 'AppName not null'
exit 1
fi fi
if [ $2 ]; then if [ $2 ]; then
torrentDir=$2 torrentDir=$2
else
echo 'torrentDir not null'
exit 2
fi fi
# 脚本当前目录 # 脚本当前目录

View File

@@ -2,11 +2,12 @@
/** /**
* 技术讨论及后续更新请加入QQ群 * 技术讨论及后续更新请加入QQ群
群名称IYUU自动辅种交流 群名称IYUU自动辅种交流
QQ群号859882209 QQ群号859882209、931954050
* IYUU自动辅种工具-【安装篇】如何下载最新源码? https://www.iyuu.cn/archives/338/ * IYUU自动辅种工具-【安装篇】如何下载最新源码? https://www.iyuu.cn/archives/338/
* IYUU自动辅种工具-【安装篇】Windows之git https://www.iyuu.cn/archives/367/ * IYUU自动辅种工具-【安装篇】Windows之git https://www.iyuu.cn/archives/367/
* IYUU自动辅种工具-【安装篇】群晖Linux之git https://www.iyuu.cn/archives/372/ * IYUU自动辅种工具-【安装篇】群晖Linux之git https://www.iyuu.cn/archives/372/
* IYUU自动辅种工具-【安装篇】小钢炮手把手教程 https://www.iyuu.cn/archives/386/ * IYUU自动辅种工具-【安装篇】小钢炮手把手教程 https://www.iyuu.cn/archives/386/
* IYUU自动辅种工具-【安装篇】全平台Docker安装方式 https://www.iyuu.cn/archives/401/
* IYUU自动辅种工具--最简配置(所有平台通用教程) https://www.iyuu.cn/archives/324/ * IYUU自动辅种工具--最简配置(所有平台通用教程) https://www.iyuu.cn/archives/324/
* IYUU自动辅种工具--合作站点鉴权配置说明 https://www.iyuu.cn/archives/337/ * IYUU自动辅种工具--合作站点鉴权配置说明 https://www.iyuu.cn/archives/337/
* IYUU自动下载种子--之RSS订阅使用教程 https://www.iyuu.cn/archives/349/ * IYUU自动下载种子--之RSS订阅使用教程 https://www.iyuu.cn/archives/349/
@@ -17,6 +18,8 @@
php ./iyuu.php php ./iyuu.php
*/ */
return array( return array(
// 有变化才发送通知(辅种成功 + 失败 > 0
'notify_on_change' => false,
// 1.【必须配置】爱语飞飞 微信通知请访问https://iyuu.cn 用微信扫码申请 // 1.【必须配置】爱语飞飞 微信通知请访问https://iyuu.cn 用微信扫码申请
'iyuu.cn' => 'IYUU', 'iyuu.cn' => 'IYUU',
// 2.全局默认配置 // 2.全局默认配置
@@ -30,20 +33,21 @@ return array(
array( array(
'type' => 'transmission', // 支持transmission、qBittorrent 'type' => 'transmission', // 支持transmission、qBittorrent
'host' => 'http://127.0.0.1:9091/transmission/rpc', // 警告注意transmission/rpc这段别动你只需要修改 127.0.0.1:9091 'host' => 'http://127.0.0.1:9091/transmission/rpc', // 警告注意transmission/rpc这段别动你只需要修改 127.0.0.1:9091
'username' => '', 'username' => '', // 没有用户名请填写null
'password' => '', 'password' => '', // 没有密码 请填写null
'BT_backup' => '/var/lib/transmission/torrents', // 移动做种:如果脚本与当前客户端不在一台机器,必须配置 'BT_backup' => '/torrents', // 移动做种:如果脚本与当前客户端不在一台机器,必须配置
'move' => 0, // 0不移动1移动并辅种2移动仅辅种自身3未定义 'move' => 0, // 0不移动1移动并辅种2移动且只在当前客户端辅种
), ),
# 结束 # 结束
# 开始 # 开始
array( array(
'type' => 'qBittorrent', // 支持transmission、qBittorrent 'type' => 'qBittorrent', // 支持transmission、qBittorrent
'host' => 'http://127.0.0.1:8083', 'host' => 'http://127.0.0.1:8083',
'username' => '', 'username' => 'admin',
'password' => '', 'password' => '',
'BT_backup' => 'C:\Users\ASUS\AppData\Local\qBittorrent\BT_backup', // 移动做种必须配置Linux搜索方法find / -name BT_backup 'root_folder'=> 1, // 创建多文件子目录0不创建1创建(下载器默认1)【此处必须与下载器真实配置相同,否则添加任务不会校验!】
'move' => 0, // 0不移动1移动并辅种2移动仅辅种自身3未定义 'BT_backup' => '/BT_backup', // 移动做种必须配置Linux搜索方法find / -name BT_backup
'move' => 0, // 0不移动1移动并辅种2移动且只在当前客户端辅种
), ),
# 结束 # 结束
// 全局客户端设置 结束 // 全局客户端设置 结束
@@ -55,14 +59,16 @@ return array(
// 当前路径 => 目标路径 // 当前路径 => 目标路径
'/downloads' => '/volume1', '/downloads' => '/volume1',
), ),
'paused' => 0, //转移成功自动开始任务0开始1暂停 'path_filter'=> array(), //转移过滤器:不转移此路径内文件
'path_selector' => array(), //转移选择器:只转移此路径内文件(为空时,全转移) 【优先级:过滤器 选择器】
'paused' => 1, //转移成功自动开始任务0开始1暂停
'skip_check' => 0, //转移成功跳校验0不跳、1跳校验 'skip_check' => 0, //转移成功跳校验0不跳、1跳校验
'delete_torrent' => 0, //转移成功删除当前做种0不删除、1删除 'delete_torrent' => 0, //转移成功删除当前做种0不删除、1删除
), ),
// 6.RSS工作模式 // 6.RSS工作模式
'workingMode' => 0, 'workingMode' => 0,
// 7.监控目录 // 7.监控目录
'watch' => '/volume1/downloads', 'watch' => '/volume1/watch',
// 8.RSS过滤参数配置 // 8.RSS过滤参数配置
'filter' => array( 'filter' => array(
'size'=>array( 'size'=>array(
@@ -93,13 +99,22 @@ return array(
* 以下为各站点的独立配置(互不影响、互不冲突) * 以下为各站点的独立配置(互不影响、互不冲突)
* 自动辅种需要配置各站的passkey没有配置passkey的站点会自动跳过 * 自动辅种需要配置各站的passkey没有配置passkey的站点会自动跳过
*/ */
// ourbits // 【合作站点用户鉴权】ourbits
'ourbits' => array( 'ourbits' => array(
// 如果需要用下载免费种脚本,须配置(只是自动辅种,可以不配置此项) // 如果需要用下载免费种脚本,须配置(只是自动辅种,可以不配置此项)
'cookie' => '', 'cookie' => '',
// 如果需要自动辅种,必须配置 // 如果需要自动辅种,必须配置
'passkey' => '', 'passkey' => '',
'id' => 0, // 用户ID(不是用户名) 'id' => 0, // 用户ID(不是用户名)
'url_replace' => array(),
'url_join' => array(
//'ipv6=1', // 种子Tracker的IP地址选择 可选ipv4ipv6
//'https=1',
),
'limitRule' => array(
'count' => 20, // 每次辅种20个
'sleep' => 15, // 最少休眠15秒
),
'workingMode' => 0, 'workingMode' => 0,
'watch' => '/root/downloads', 'watch' => '/root/downloads',
'filter' => array( 'filter' => array(
@@ -108,30 +123,75 @@ return array(
'max' => '280GB', 'max' => '280GB',
), ),
), ),
), ),
// hddolby // 【合作站点用户鉴权】hddolby
'hddolby' => array( 'hddolby' => array(
// 如果需要用下载免费种脚本,须配置(只是自动辅种,可以不配置此项) // 如果需要用下载免费种脚本,须配置(只是自动辅种,可以不配置此项)
'cookie' => '', 'cookie' => '',
// 如果需要自动辅种,必须配置 // 如果需要自动辅种,必须配置
'passkey' => '', 'passkey' => '',
// 如果需要辅种,必须配置
'rss' => '',
'id' => 0, // 用户ID(不是用户名) 'id' => 0, // 用户ID(不是用户名)
'url_replace' => array(),
'url_join' => array(),
'limitRule' => array(
'count' => 20, // 每次辅种20个
'sleep' => 5, // 最少休眠5秒
),
), ),
// hdhome // 【合作站点用户鉴权】hdhome
'hdhome' => array( 'hdhome' => array(
// 如果需要用下载免费种脚本,须配置(只是自动辅种,可以不配置此项) // 如果需要用下载免费种脚本,须配置(只是自动辅种,可以不配置此项)
'cookie' => '', 'cookie' => '',
// 如果需要自动辅种,必须配置 // 如果需要自动辅种,必须配置
'passkey' => '', 'passkey' => '',
// 如果需要辅种,必须配置
'rss' => '',
'id' => 0, // 用户ID(不是用户名) 'id' => 0, // 用户ID(不是用户名)
'url_replace' => array(),
'url_join' => array(),
'limitRule' => array(
'count' => 20, // 每次辅种20个
'sleep' => 5, // 最少休眠5秒
),
), ),
// PTHome // 【合作站点用户鉴权】PTHome
'pthome' => array( 'pthome' => array(
// 如果需要用下载免费种脚本,须配置(只是自动辅种,可以不配置此项) // 如果需要用下载免费种脚本,须配置(只是自动辅种,可以不配置此项)
'cookie' => '', 'cookie' => '',
// 如果需要自动辅种,必须配置 // 如果需要自动辅种,必须配置
'passkey' => '', 'passkey' => '',
// 如果需要辅种,必须配置
'rss' => '',
'id' => 0, // 用户ID(不是用户名) 'id' => 0, // 用户ID(不是用户名)
'url_replace' => array(),
'url_join' => array(),
'limitRule' => array(
'count' => 20, // 每次辅种20个
'sleep' => 5, // 最少休眠5秒
),
),
// 【合作站点用户鉴权】chdbits
'chdbits' => array(
// 如果需要用下载免费种脚本,须配置(只是自动辅种,可以不配置此项)
'cookie' => '',
// 如果需要自动辅种,必须配置
'passkey' => '',
'id' => 0, // 用户ID(不是用户名)
'url_replace' => array(),
'url_join' => array(),
),
// HDAI
'hdai' => array(
// 如果需要用下载免费种脚本,须配置(只是自动辅种,可以不配置此项)
'cookie' => '',
// 如果需要自动辅种,必须配置
'passkey' => '',
'id' => 0, // 用户ID(不是用户名)
'url_replace' => array(),
'url_join' => array(),
), ),
// m-team // m-team
'm-team' => array( 'm-team' => array(
@@ -139,24 +199,10 @@ return array(
'cookie' => 'tp=', 'cookie' => 'tp=',
// 15.m-team的passkey 【必须配置】 // 15.m-team的passkey 【必须配置】
'passkey' => '', 'passkey' => '',
// 种子Tracker的IP地址选择 可选ipv4ipv6 'url_replace' => array(),
'ip_type' => 'ipv4', 'url_join' => array(
'clients' => array( //'ipv6=1', // 种子Tracker的IP地址选择 可选ipv4ipv6
array( 'https=1',
'type' => 'transmission', // 支持transmission、qBittorrent
'host' => 'http://127.0.0.1:9091/transmission/rpc', // 警告注意transmission/rpc这段别动你只需要修改 127.0.0.1:9091
'username' => '',
'password' => '',
'downloadDir'=> '',
),
),
'workingMode' => 1,
'watch' => '',
'filter' => array(
'size'=>array(
'min' => '1GB',
'max' => '280GB',
),
), ),
), ),
// keepfrds // keepfrds
@@ -165,6 +211,8 @@ return array(
'cookie' => '', 'cookie' => '',
// 如果需要自动辅种,必须配置 // 如果需要自动辅种,必须配置
'passkey' => '', 'passkey' => '',
'url_replace' => array(),
'url_join' => array(),
'workingMode' => 1, 'workingMode' => 1,
'watch' => '', 'watch' => '',
'filter' => array( 'filter' => array(
@@ -180,6 +228,8 @@ return array(
'cookie' => '', 'cookie' => '',
// 如果需要自动辅种,必须配置 // 如果需要自动辅种,必须配置
'passkey' => '', 'passkey' => '',
'url_replace' => array(),
'url_join' => array(),
), ),
// tjupt // tjupt
'tjupt' => array( 'tjupt' => array(
@@ -187,6 +237,8 @@ return array(
'cookie' => '', 'cookie' => '',
// 如果需要自动辅种,必须配置 // 如果需要自动辅种,必须配置
'passkey' => '', 'passkey' => '',
'url_replace' => array(),
'url_join' => array(),
), ),
// btschool // btschool
'btschool' => array( 'btschool' => array(
@@ -194,13 +246,21 @@ return array(
'cookie' => '', 'cookie' => '',
// 如果需要自动辅种,必须配置 // 如果需要自动辅种,必须配置
'passkey' => '', 'passkey' => '',
'url_replace' => array(),
'url_join' => array(),
), ),
// HDSky // HDSky
'hdsky' => array( 'hdsky' => array(
// 如果需要用下载免费种脚本,须配置(只是自动辅种,可以不配置此项 // 如果需要自动辅种,必须配置此项
'cookie' => '', 'cookie' => '',
// 如果需要自动辅种,必须配置 // 如果需要自动辅种,必须配置
'passkey' => '', 'passkey' => '',
'limitRule' => array(
'count' => 20, // 每次辅种20个
'sleep' => 20, // 最少休眠20秒
),
'url_replace' => array(),
'url_join' => array(),
), ),
// TorrentCCF // TorrentCCF
'torrentccf' => array( 'torrentccf' => array(
@@ -208,6 +268,8 @@ return array(
'cookie' => '', 'cookie' => '',
// 如果需要自动辅种,必须配置 // 如果需要自动辅种,必须配置
'passkey' => '', 'passkey' => '',
'url_replace' => array(),
'url_join' => array(),
), ),
// PTMSG // PTMSG
'ptmsg' => array( 'ptmsg' => array(
@@ -215,15 +277,8 @@ return array(
'cookie' => '', 'cookie' => '',
// 如果需要自动辅种,必须配置 // 如果需要自动辅种,必须配置
'passkey' => '', 'passkey' => '',
), 'url_replace' => array(),
// MoeCat 'url_join' => array(),
'moecat' => array(
// 如果需要用下载免费种脚本,须配置(只是自动辅种,可以不配置此项)
'cookie' => '',
// 如果需要自动辅种,必须配置
'passkey' => '',
// 种子Tracker的IP地址选择 可选ipv4ipv6
'ip_type' => 'ipv4',
), ),
// totheglory // totheglory
'ttg' => array( 'ttg' => array(
@@ -233,6 +288,8 @@ return array(
'passkey' => '', 'passkey' => '',
// 如果需要rss订阅必须配置 // 如果需要rss订阅必须配置
'rss' => '', 'rss' => '',
'url_replace' => array(),
'url_join' => array(),
), ),
// nanyangpt // nanyangpt
'nanyangpt' => array( 'nanyangpt' => array(
@@ -240,6 +297,8 @@ return array(
'cookie' => '', 'cookie' => '',
// 如果需要自动辅种,必须配置 // 如果需要自动辅种,必须配置
'passkey' => '', 'passkey' => '',
'url_replace' => array(),
'url_join' => array(),
), ),
// springsunday.net // springsunday.net
'ssd' => array( 'ssd' => array(
@@ -247,6 +306,12 @@ return array(
'cookie' => '', 'cookie' => '',
// 如果需要自动辅种,必须配置 // 如果需要自动辅种,必须配置
'passkey' => '', 'passkey' => '',
'url_replace' => array(),
'url_join' => array(),
'limitRule' => array(
'count' => 20, // 每次辅种20个
'sleep' => 15, // 最少休眠15秒
),
), ),
// yingk // yingk
'yingk' => array( 'yingk' => array(
@@ -254,6 +319,8 @@ return array(
'cookie' => '', 'cookie' => '',
// 如果需要自动辅种,必须配置 // 如果需要自动辅种,必须配置
'passkey' => '', 'passkey' => '',
'url_replace' => array(),
'url_join' => array(),
), ),
// hdcity // hdcity
'hdcity' => array( 'hdcity' => array(
@@ -261,6 +328,8 @@ return array(
'cookie' => '', 'cookie' => '',
// 如果需要自动辅种必须配置cuhash // 如果需要自动辅种必须配置cuhash
'passkey' => '', 'passkey' => '',
'url_replace' => array(),
'url_join' => array(),
), ),
// 52pt.site // 52pt.site
'52pt' => array( '52pt' => array(
@@ -268,6 +337,8 @@ return array(
'cookie' => '', 'cookie' => '',
// 如果需要自动辅种,必须配置 // 如果需要自动辅种,必须配置
'passkey' => '', 'passkey' => '',
'url_replace' => array(),
'url_join' => array(),
), ),
// brobits // brobits
'brobits' => array( 'brobits' => array(
@@ -275,6 +346,8 @@ return array(
'cookie' => '', 'cookie' => '',
// 如果需要自动辅种,必须配置 // 如果需要自动辅种,必须配置
'passkey' => '', 'passkey' => '',
'url_replace' => array(),
'url_join' => array(),
), ),
// beitai // beitai
'beitai' => array( 'beitai' => array(
@@ -282,6 +355,8 @@ return array(
'cookie' => '', 'cookie' => '',
// 如果需要自动辅种,必须配置 // 如果需要自动辅种,必须配置
'passkey' => '', 'passkey' => '',
'url_replace' => array(),
'url_join' => array(),
), ),
// eastgame // eastgame
'eastgame' => array( 'eastgame' => array(
@@ -289,6 +364,8 @@ return array(
'cookie' => '', 'cookie' => '',
// 如果需要自动辅种,必须配置 // 如果需要自动辅种,必须配置
'passkey' => '', 'passkey' => '',
'url_replace' => array(),
'url_join' => array(),
), ),
// soulvoice // soulvoice
'soulvoice' => array( 'soulvoice' => array(
@@ -296,13 +373,8 @@ return array(
'cookie' => '', 'cookie' => '',
// 如果需要自动辅种,必须配置 // 如果需要自动辅种,必须配置
'passkey' => '', 'passkey' => '',
), 'url_replace' => array(),
// chdbits 'url_join' => array(),
'chdbits' => array(
// 如果需要用下载免费种脚本,须配置(只是自动辅种,可以不配置此项)
'cookie' => '',
// 如果需要自动辅种,必须配置
'passkey' => '',
), ),
// leaguehd // leaguehd
'leaguehd' => array( 'leaguehd' => array(
@@ -310,6 +382,8 @@ return array(
'cookie' => '', 'cookie' => '',
// 如果需要自动辅种,必须配置 // 如果需要自动辅种,必须配置
'passkey' => '', 'passkey' => '',
'url_replace' => array(),
'url_join' => array(),
), ),
// ptsbao // ptsbao
'ptsbao' => array( 'ptsbao' => array(
@@ -317,6 +391,8 @@ return array(
'cookie' => '', 'cookie' => '',
// 如果需要自动辅种,必须配置 // 如果需要自动辅种,必须配置
'passkey' => '', 'passkey' => '',
'url_replace' => array(),
'url_join' => array(),
), ),
// hdchina // hdchina
'hdchina' => array( 'hdchina' => array(
@@ -324,6 +400,12 @@ return array(
'cookie' => '', 'cookie' => '',
// 如果需要自动辅种,必须配置 // 如果需要自动辅种,必须配置
'passkey' => '', 'passkey' => '',
'url_replace' => array(),
'url_join' => array(),
'limitRule' => array(
'count' => 10, // 每次辅种10个
'sleep' => 5, // 最少休眠15秒
),
), ),
// hdarea // hdarea
'hdarea' => array( 'hdarea' => array(
@@ -331,6 +413,8 @@ return array(
'cookie' => '', 'cookie' => '',
// 如果需要自动辅种,必须配置 // 如果需要自动辅种,必须配置
'passkey' => '', 'passkey' => '',
'url_replace' => array(),
'url_join' => array(),
), ),
// hdtime // hdtime
'hdtime' => array( 'hdtime' => array(
@@ -338,6 +422,8 @@ return array(
'cookie' => '', 'cookie' => '',
// 如果需要自动辅种,必须配置 // 如果需要自动辅种,必须配置
'passkey' => '', 'passkey' => '',
'url_replace' => array(),
'url_join' => array(),
), ),
// 1ptba // 1ptba
'1ptba' => array( '1ptba' => array(
@@ -345,6 +431,8 @@ return array(
'cookie' => '', 'cookie' => '',
// 如果需要自动辅种,必须配置 // 如果需要自动辅种,必须配置
'passkey' => '', 'passkey' => '',
'url_replace' => array(),
'url_join' => array(),
), ),
// hd4fans // hd4fans
'hd4fans' => array( 'hd4fans' => array(
@@ -352,6 +440,8 @@ return array(
'cookie' => '', 'cookie' => '',
// 如果需要自动辅种,必须配置 // 如果需要自动辅种,必须配置
'passkey' => '', 'passkey' => '',
'url_replace' => array(),
'url_join' => array(),
), ),
// hddisk.life // hddisk.life
'hdbug' => array( 'hdbug' => array(
@@ -359,6 +449,8 @@ return array(
'cookie' => '', 'cookie' => '',
// 如果需要自动辅种,必须配置 // 如果需要自动辅种,必须配置
'passkey' => '', 'passkey' => '',
'url_replace' => array(),
'url_join' => array(),
), ),
// opencd皇后 // opencd皇后
'opencd' => array( 'opencd' => array(
@@ -366,6 +458,8 @@ return array(
'cookie' => '', 'cookie' => '',
// 如果需要自动辅种,必须配置 // 如果需要自动辅种,必须配置
'passkey' => '', 'passkey' => '',
'url_replace' => array(),
'url_join' => array(),
), ),
// hdstreet // hdstreet
'hdstreet' => array( 'hdstreet' => array(
@@ -373,6 +467,8 @@ return array(
'cookie' => '', 'cookie' => '',
// 如果需要自动辅种,必须配置 // 如果需要自动辅种,必须配置
'passkey' => '', 'passkey' => '',
'url_replace' => array(),
'url_join' => array(),
), ),
// joyhd // joyhd
'joyhd' => array( 'joyhd' => array(
@@ -380,6 +476,8 @@ return array(
'cookie' => '', 'cookie' => '',
// 如果需要自动辅种,必须配置 // 如果需要自动辅种,必须配置
'passkey' => '', 'passkey' => '',
'url_replace' => array(),
'url_join' => array(),
), ),
// dmhy幼儿园 // dmhy幼儿园
'dmhy' => array( 'dmhy' => array(
@@ -387,6 +485,8 @@ return array(
'cookie' => '', 'cookie' => '',
// 如果需要自动辅种,必须配置 // 如果需要自动辅种,必须配置
'passkey' => '', 'passkey' => '',
'url_replace' => array(),
'url_join' => array(),
), ),
// hdu // hdu
'upxin' => array( 'upxin' => array(
@@ -394,6 +494,8 @@ return array(
'cookie' => '', 'cookie' => '',
// 如果需要自动辅种,必须配置 // 如果需要自动辅种,必须配置
'passkey' => '', 'passkey' => '',
'url_replace' => array(),
'url_join' => array(),
), ),
// oshen // oshen
'oshen' => array( 'oshen' => array(
@@ -401,6 +503,8 @@ return array(
'cookie' => '', 'cookie' => '',
// 如果需要自动辅种,必须配置 // 如果需要自动辅种,必须配置
'passkey' => '', 'passkey' => '',
'url_replace' => array(),
'url_join' => array(),
), ),
// discfan港知堂 // discfan港知堂
'discfan' => array( 'discfan' => array(
@@ -408,6 +512,8 @@ return array(
'cookie' => '', 'cookie' => '',
// 如果需要自动辅种,必须配置 // 如果需要自动辅种,必须配置
'passkey' => '', 'passkey' => '',
'url_replace' => array(),
'url_join' => array(),
), ),
// hdzone // hdzone
'hdzone' => array( 'hdzone' => array(
@@ -415,6 +521,8 @@ return array(
'cookie' => '', 'cookie' => '',
// 如果需要自动辅种,必须配置 // 如果需要自动辅种,必须配置
'passkey' => '', 'passkey' => '',
'url_replace' => array(),
'url_join' => array(),
), ),
// nicept老师 // nicept老师
'nicept' => array( 'nicept' => array(
@@ -422,6 +530,8 @@ return array(
'cookie' => '', 'cookie' => '',
// 如果需要自动辅种,必须配置 // 如果需要自动辅种,必须配置
'passkey' => '', 'passkey' => '',
'url_replace' => array(),
'url_join' => array(),
), ),
// hdbd伊甸园 // hdbd伊甸园
'hdbd' => array( 'hdbd' => array(
@@ -429,6 +539,11 @@ return array(
'cookie' => '', 'cookie' => '',
// 如果需要自动辅种,必须配置 // 如果需要自动辅种,必须配置
'passkey' => '', 'passkey' => '',
'url_replace' => array(),
'url_join' => array(
//'ipv6=1', // 种子Tracker的IP地址选择 可选ipv4ipv6
//'https=1',
),
), ),
// byr北邮 // byr北邮
'byr' => array( 'byr' => array(
@@ -436,6 +551,8 @@ return array(
'cookie' => '', 'cookie' => '',
// 如果需要自动辅种,必须配置 // 如果需要自动辅种,必须配置
'passkey' => '', 'passkey' => '',
'url_replace' => array(),
'url_join' => array(),
), ),
// CCFBits // CCFBits
'ccfbits' => array( 'ccfbits' => array(
@@ -443,6 +560,8 @@ return array(
'cookie' => '', 'cookie' => '',
// 如果需要自动辅种,必须配置 // 如果需要自动辅种,必须配置
'passkey' => '', 'passkey' => '',
'url_replace' => array(),
'url_join' => array(),
), ),
// hdbits // hdbits
'hdbits' => array( 'hdbits' => array(
@@ -450,6 +569,8 @@ return array(
'cookie' => '', 'cookie' => '',
// 如果需要自动辅种,必须配置 // 如果需要自动辅种,必须配置
'passkey' => '', 'passkey' => '',
'url_replace' => array(),
'url_join' => array(),
), ),
// PTPBD // PTPBD
'ptpbd' => array( 'ptpbd' => array(
@@ -457,6 +578,8 @@ return array(
'cookie' => '', 'cookie' => '',
// 如果需要自动辅种,必须配置 // 如果需要自动辅种,必须配置
'passkey' => '', 'passkey' => '',
'url_replace' => array(),
'url_join' => array(),
), ),
// HD-T // HD-T
'hd-torrents' => array( 'hd-torrents' => array(
@@ -464,6 +587,8 @@ return array(
'cookie' => '', 'cookie' => '',
// 如果需要自动辅种,必须配置 // 如果需要自动辅种,必须配置
'passkey' => '', 'passkey' => '',
'url_replace' => array(),
'url_join' => array(),
), ),
// skyeysnow天雪 // skyeysnow天雪
'skyeysnow' => array( 'skyeysnow' => array(
@@ -471,6 +596,8 @@ return array(
'cookie' => '', 'cookie' => '',
// 如果需要自动辅种,必须配置 // 如果需要自动辅种,必须配置
'passkey' => '', 'passkey' => '',
'url_replace' => array(),
'url_join' => array(),
), ),
// pt.sjtu葡萄 // pt.sjtu葡萄
'pt' => array( 'pt' => array(
@@ -478,6 +605,12 @@ return array(
'cookie' => '', 'cookie' => '',
// 如果需要自动辅种,必须配置 // 如果需要自动辅种,必须配置
'passkey' => '', 'passkey' => '',
'url_replace' => array(),
'url_join' => array(),
'limitRule' => array(
'count' => 20, // 每次辅种20个
'sleep' => 20, // 最少休眠20秒
),
), ),
// hdroute // hdroute
'hdroute' => array( 'hdroute' => array(
@@ -485,7 +618,51 @@ return array(
'cookie' => '', 'cookie' => '',
// 如果需要自动辅种,必须配置 // 如果需要自动辅种,必须配置
'passkey' => '', 'passkey' => '',
'url_replace' => array(),
'url_join' => array(),
), ),
// haidan
// 配置结束,后面的一行需要不能删除,请保留!!! 'haidan' => array(
// 如果需要用下载免费种脚本,须配置(只是自动辅种,可以不配置此项)
'cookie' => '',
// 如果需要自动辅种,必须配置
'passkey' => '',
'url_replace' => array(),
'url_join' => array(),
),
// hdfans
'hdfans' => array(
// 如果需要用下载免费种脚本,须配置(只是自动辅种,可以不配置此项)
'cookie' => '',
// 如果需要自动辅种,必须配置
'passkey' => '',
'url_replace' => array(),
'url_join' => array(),
),
// dragonhd
'dragonhd' => array(
// 如果需要用下载免费种脚本,须配置(只是自动辅种,可以不配置此项)
'cookie' => '',
// 如果需要自动辅种,必须配置
'passkey' => '',
),
// hitpt 百川
'hitpt' => array(
// 如果需要用下载免费种脚本,须配置(只是自动辅种,可以不配置此项)
'cookie' => '',
// 如果需要自动辅种,必须配置
'passkey' => '',
'url_replace' => array(),
'url_join' => array(),
),
// pttime PT时间
'pttime' => array(
// 如果需要用下载免费种脚本,须配置(只是自动辅种,可以不配置此项)
'cookie' => '',
// 如果需要自动辅种,必须配置
'passkey' => '',
'url_replace' => array(),
'url_join' => array(),
),
// 配置结束,后面的一行不能删除,必须保留!!!
); );

112
docker/AMD64/Dockerfile Normal file
View File

@@ -0,0 +1,112 @@
#FROM alpine:latest
#FROM alpine:3.12
FROM alpine:3.8
#FROM swoft/alphp:base
#FROM swoft/alphp:cli
LABEL maintainer="david <367013672@qq.com>" version="1.0"
##
# ---------- env settings ----------
##
# --build-arg timezone=Asia/Shanghai
ARG timezone
# prod pre test dev
ARG app_env=prod
# default use www-data user
# ARG add_user=www-data
ENV APP_ENV=${app_env:-"prod"} \
TIMEZONE=${timezone:-"Asia/Shanghai"} \
cron="3 11 * * *"
##
# ---------- building ----------
##
RUN set -ex \
# change apk source repo
#&& sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/' /etc/apk/repositories \
&& apk update \
&& apk add --no-cache \
# Install base packages ('ca-certificates' will install 'nghttp2-libs')
# ca-certificates \
# curl \
# tar \
# xz \
# libressl \
# openssh \
# openssl \
git \
tzdata \
# pcre \
# install php7 and some extensions
php7 \
# php7-common \
# php7-bcmath \
php7-curl \
# php7-ctype \
php7-dom \
# php7-fileinfo \
# php7-gettext \
# php7-gd \
# php7-iconv \
# php7-imagick \
php7-json \
php7-mbstring \
#php7-mongodb \
# php7-mysqlnd \
# php7-openssl \
# php7-opcache \
# php7-pdo \
# php7-pdo_mysql \
# php7-pdo_sqlite \
# php7-phar \
# php7-pcntl \
# php7-posix \
# php7-redis \
php7-simplexml \
# php7-sockets \
# php7-sodium \
# php7-sqlite \
# php7-session \
# php7-sysvshm \
# php7-sysvmsg \
# php7-sysvsem \
# php7-tokenizer \
php7-zip \
# php7-zlib \
php7-xml \
&& git clone https://gitee.com/ledc/IYUUAutoReseed.git /IYUU \
&& cp /IYUU/config/config.sample.php /IYUU/config/config.php \
&& ln -sf /IYUU/config/config.php /config.php \
&& apk del --purge *-dev \
&& rm -rf /var/cache/apk/* /tmp/* /usr/share/man /usr/share/php7 \
# ---------- some config,clear work ----------
&& cd /etc/php7 \
# - config PHP
&& { \
echo "upload_max_filesize=100M"; \
echo "post_max_size=108M"; \
echo "memory_limit=1024M"; \
echo "date.timezone=${TIMEZONE}"; \
} | tee conf.d/99-overrides.ini \
# - config timezone
&& ln -sf /usr/share/zoneinfo/${TIMEZONE} /etc/localtime \
&& echo "${TIMEZONE}" > /etc/timezone \
&& echo '2 */5 * * * cd /IYUU && git fetch --all && git reset --hard origin/master' >> /etc/crontabs/root \
#&& echo "${cron} /usr/bin/php /IYUU/iyuu.php &> /dev/null" >> /etc/crontabs/root \
# ---------- some config work ----------
# - ensure 'www-data' user exists(82 is the standard uid/gid for "www-data" in Alpine)
# && addgroup -g 82 -S ${add_user} \
# && adduser -u 82 -D -S -G ${add_user} ${add_user} \
# # - create user dir
# && mkdir -p /data \
# && chown -R ${add_user}:${add_user} /data \
&& echo -e "\033[42;37m Build Completed :).\033[0m\n"
# EXPOSE 9000
# VOLUME ["/IYUU", "/data"]
WORKDIR /IYUU
ENTRYPOINT ["/IYUU/docker/entrypoint.sh"]

4
docker/AMD64/build.sh Normal file
View File

@@ -0,0 +1,4 @@
#!/bin/sh
docker build -t iyuu:latest .
docker run -it -v /root/config.php:/config.php --network bridge --name IYUUAutoReseed --restart always -d iyuu:latest
docker exec -it IYUUAutoReseed php iyuu.php

30
docker/Arm64v8/Dockerfile Normal file
View File

@@ -0,0 +1,30 @@
# FROM arm64v8/alpine
# FROM arm64v8/alpine:latest
FROM arm64v8/alpine:3.12
ENV TZ Asia/Shanghai
ENV cron="3 15 * * *"
RUN set -ex \
&& sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/' /etc/apk/repositories \
# && sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.cn/' /etc/apk/repositories \
&& apk update \
&& apk add --no-cache \
tzdata \
php7 php7-curl php7-json php7-mbstring php7-dom php7-simplexml php7-xml php7-zip \
git \
&& git clone https://gitee.com/ledc/IYUUAutoReseed.git /IYUU \
&& cp /IYUU/config/config.sample.php /IYUU/config/config.php \
&& ln -sf /IYUU/config/config.php /config.php \
&& apk del --purge *-dev \
&& rm -rf /var/cache/apk/* /tmp/* /usr/share/man \
&& echo "${TZ}" > /etc/timezone \
&& ln -sf /usr/share/zoneinfo/${TZ} /etc/localtime \
# && echo '* * * * * echo "iyuu.cn" >/dev/null 2>&1' >> /etc/crontabs/root \
&& echo '3 */6 * * * cd /IYUU && git fetch --all && git reset --hard origin/master' >> /etc/crontabs/root \
# && echo "${cron} /usr/bin/php /IYUU/iyuu.php >/dev/null 2>&1" >> /etc/crontabs/root \
&& echo -e "\033[42;37m Build Completed :).\033[0m\n"
WORKDIR /IYUU
ENTRYPOINT ["/IYUU/docker/entrypoint.sh"]

View File

@@ -0,0 +1,4 @@
#!/bin/sh
docker build -t iyuu:arm64v8 .
docker run -it -v /root/config.php:/config.php -v /var/lib/transmission/torrents:/torrents -v /var/lib/qbittorrent/.local/share/data/qBittorrent/BT_backup:/BT_backup --network bridge --name IYUUAutoReseed --restart always -d iyuu:arm64v8
docker exec -it IYUUAutoReseed php iyuu.php

4
docker/Arm64v8/build.sh Normal file
View File

@@ -0,0 +1,4 @@
#!/bin/sh
docker build -f Dockerfile -t iyuu:arm64v8 .
docker run -it -v /root/config.php:/config.php --network bridge --name IYUUAutoReseed --restart always -d iyuu:arm64v8
docker exec -it IYUUAutoReseed php iyuu.php

View File

@@ -1,3 +0,0 @@
FROM php:7.4-fpm
EXPOSE 9000
WORKDIR /var/www

View File

@@ -1,74 +0,0 @@
# IYUUAutoReseed自动辅种docker安装教程
### 教程地址https://www.iyuu.cn/archives/386/
### 命令行安装步骤:
```sh
cd /root
git clone https://gitee.com/ledc/IYUUAutoReseed.git
cd /root/IYUUAutoReseed/docker
chmod +x ./*.sh
./build.sh
./iyuu.sh
```
### 命令解释:
第一步:进入`/root`目录内;
第二步通过git命令拉取最新辅种脚本代码
第三步:进入`/root/IYUUAutoReseed/docker`目录
第四步:给予`build.sh``iyuu.sh`可执行权限;
第五步:编译镜像并运行容器,请耐心等待完成;
第六步测试IYUU辅种脚本是否正常运行。
第七步:测试是否安装完成,命令为:`./iyuu.sh`
做完以上6步确认没问题后然后看教程https://www.iyuu.cn/archives/324/,来编辑配置即可。
#### 必读:脚本会在`/root`目录,创建`IYUUAutoReseed`文件夹,您只需要按照上述教程编辑好配置,放到`/root/IYUUAutoReseed/config/config.php`
### 辅种时执行的命令:`iyuu.sh`
## 如何定时辅种?
`iyuu.sh`加入Linux计划任务内。
## 小钢炮qBittorrent连接失败
v4.1.5无法连接请安装灯大高版本的qbittorrent做种列表不丢失且不用校验。
```sh
IMAGE_NAME=80x86/qbittorrent
WEB_PORT=8083
DOWNLOAD_PATH=$(cat /var/lib/qbittorrent/.config/qBittorrent/qBittorrent.conf | grep -i 'Downloads\\SavePath' | cut -d'=' -f2)
BT_PORT=8999
QBT_AUTH_SERVER_ADDR=$(ip -4 addr show docker0 | grep inet | awk '{print $2}' | cut -d'/' -f1)
docker run -d --name qbittorrent \
-e PUID=$(id -u qbittorrent) \
-e PGID=$(cat /etc/group | grep -e '^users' | cut -d':' -f3) \
-e WEB_PORT=$WEB_PORT \
-e BT_PORT=$BT_PORT \
-e QBT_AUTH_SERVER_ADDR=$QBT_AUTH_SERVER_ADDR \
--restart unless-stopped \
-p $WEB_PORT:$WEB_PORT -p $BT_PORT:$BT_PORT/tcp -p $BT_PORT:$BT_PORT/udp \
-v /var/lib/qbittorrent/.config/qBittorrent:/config \
-v /var/lib/qbittorrent/.local/share/data/qBittorrent:/data \
-v "$DOWNLOAD_PATH":/downloads \
--mount type=tmpfs,destination=/tmp \
${IMAGE_NAME}
```

137
docker/Readme.md Normal file
View File

@@ -0,0 +1,137 @@
# 使用方法:
### 1.拉取镜像、创建容器,运行
#### ARM平台通用方法
```
docker run -d \
--name IYUUAutoReseed \
-e cron='0 9 * * 0' \
-v /root/config.php:/config.php \
--restart=always \
iyuucn/iyuuautoreseed:arm64v8
```
#### 小钢炮方法:
```
docker run -d \
--name IYUUAutoReseed \
-e cron='0 8 * * 0' \
-v /root/config.php:/config.php \
-v /var/lib/transmission/torrents:/torrents \
-v /var/lib/qbittorrent/.local/share/data/qBittorrent/BT_backup:/BT_backup \
--restart always \
iyuucn/iyuuautoreseed:arm64v8
```
#### AMD64平台MAC OS、台式、服务器、NAS等
```
docker run -d \
--name IYUUAutoReseed \
-e cron='0 9 * * 0' \
-v /root/config.php:/config.php \
--restart=always \
iyuucn/iyuuautoreseed:latest
```
**命令解释**
| 参数 | 解释 |
| ----------- | ------------------------------------------------------------ |
| `--name` | 容器名字 |
| `-e` | 环境变量,定时任务执行时间 |
| `-v` | 本地目录或文件:容器目录文件,资源挂载到容器。<br />请把你的配置文件放在/root/config.php会把你的配置映射进容器内。 |
| `--restart` | 启动模式 |
------
### 2.停止
```
docker stop IYUUAutoReseed
```
### 3.运行
```
docker start IYUUAutoReseed
```
### 4.删除容器
```
docker rm IYUUAutoReseed
```
### 5.删除镜像
```
docker rmi iyuucn/iyuuautoreseed:arm64v8
```
------
#### 功能
IYUU自动辅种工具功能分为两大块自动辅种、自动转移。
- 自动辅种目前能对国内大部分的PT站点自动辅种支持下载器集群支持多盘位支持多下载目录支持远程连接等
- 自动转移:可以实现各下载器之间自动转移做种客户端,让下载器各司其职(专职的保种、专职的下载)。
#### 原理
IYUU自动辅种工具英文名IYUUAutoReseed是一款PHP语言编写的Private Tracker辅种脚本通过计划任务或常驻内存按指定频率调用transmission、qBittorrent下载软件的API接口提取正在做种的info_hash提交到辅种服务器API接口辅种过程和PT站没有任何交互根据API接口返回的数据拼接种子连接提交给下载器自动辅种各个站点。
#### 优势
- 全程自动化,无需人工干预;
- 支持多盘位,多做种目录,多下载器,支持远程下载器;
- 辅种精确度高,精度可配置;
- 支持微信通知,消息即时达;
- 自动对合集包,进行拆包辅种(暂未开发)
- 安全:所有隐私信息只在本地存储,绝不发送给第三方。
- 拥有专业的问答社区和交流群
#### 支持的下载器
1. transmission
2. qBittorrent
#### 运行环境
具备PHP运行环境的所有平台例如Linux、Windows、MacOS
官方下载的记得开启curl、json、mbstring这3个扩展。
1. Windows安装php环境https://www.php.net/downloads
#### 源码仓库
- github仓库https://github.com/ledccn/IYUUAutoReseed
- 码云仓库https://gitee.com/ledc/IYUUAutoReseed
#### 使用方法
- 博客https://www.iyuu.cn/
#### 接口开发文档
如果您懂得其他语言的开发可以基于接口做成任何您喜欢的样子比如手机APP二进制包Windows的GUI程序浏览器插件等。欢迎分享您的作品
实时更新的接口文档http://api.iyuu.cn/docs.php
#### 需求提交/错误反馈
- QQ群859882209[2000人.入门群]931954050[1000人.进阶群]
- 问答社区http://wenda.iyuu.cn
- 博客https://www.iyuu.cn/
- issues https://gitee.com/ledc/IYUUAutoReseed/issues

View File

@@ -1,6 +0,0 @@
#!/bin/sh
#wget -c https://gitee.com/ledc/IYUUAutoReseed/repository/archive/master.zip -O IYUUAutoReseed.zip
#unzip -o ./IYUUAutoReseed.zip -d /root
#rm ./IYUUAutoReseed.zip
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

7
docker/entrypoint.sh Normal file
View File

@@ -0,0 +1,7 @@
#!/bin/sh
DEFAULT_CRON="9 */6 * * *"
cron=${cron:-$DEFAULT_CRON}
set -e
echo "$cron /usr/bin/php /IYUU/iyuu.php" | crontab -
/usr/bin/php /IYUU/iyuu.php
/usr/sbin/crond -f

View File

@@ -1,3 +1,3 @@
#!/bin/sh #!/bin/sh
export PATH=$PATH:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/root/bin export PATH=$PATH:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/root/bin
docker exec -it IYUUAutoReseed php iyuu.php docker exec IYUUAutoReseed php iyuu.php

View File

@@ -1,8 +0,0 @@
#!/bin/sh
cd /root
git clone https://gitee.com/ledc/IYUUAutoReseed.git
cd /root/IYUUAutoReseed/docker
chmod +x ./*.sh
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
./iyuu.sh

View File

@@ -1,3 +0,0 @@
#!/bin/sh
export PATH=$PATH:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/root/bin
docker exec IYUUAutoReseed php iyuu.php

View File

@@ -5,5 +5,4 @@ echo $pwddir
cd $(dirname $0) cd $(dirname $0)
git fetch --all git fetch --all
git reset --hard origin/master git reset --hard origin/master
git pull
php ./iyuu.php php ./iyuu.php

View File

@@ -50,15 +50,18 @@ if (file_exists(ROOT_PATH."/config/config.php")) {
// 配置(全局变量) // 配置(全局变量)
$configALL = require_once ROOT_PATH . "/config/config.php"; $configALL = require_once ROOT_PATH . "/config/config.php";
} else { } else {
// 第一次会生成
@copy(ROOT_PATH . '/config/config.sample.php', ROOT_PATH . '/config/config.php');
// 示例配置 // 示例配置
$configALL = require_once ROOT_PATH . '/config/config.sample.php'; $configALL = require_once ROOT_PATH . '/config/config.sample.php';
echo microtime(true).' 缺少config.php已载入config.sample.php示例配置。'.PHP_EOL; echo microtime(true).' 缺少config.php已载入config.sample.php示例配置。'.PHP_EOL;
echo microtime(true).' 请配置文件改名为config.php以免后续版本升级覆盖配置'.PHP_EOL; echo microtime(true).' 请编辑配置文件config.php以免后续版本升级覆盖配置'.PHP_EOL;
$t = 30; $t = 30;
do { do {
echo microtime(true)."配置文件改名为config.php{$t}秒后继续...".PHP_EOL; echo microtime(true)."编辑配置文件config.php{$t}秒后退出...".PHP_EOL;
sleep(1); sleep(1);
} while (--$t > 0); } while (--$t > 0);
exit;
} }
echo microtime(true).' 全局配置载入完成!'.PHP_EOL; echo microtime(true).' 全局配置载入完成!'.PHP_EOL;
// 读取支持列表 // 读取支持列表

View File

@@ -24,11 +24,8 @@
*/ */
require_once __DIR__ . '/init.php'; require_once __DIR__ . '/init.php';
echo __FILE__.PHP_EOL; echo '当前脚本路径:'.__FILE__.PHP_EOL;
sleep(1);
use IYUU\AutoReseed; use IYUU\AutoReseed;
echo microtime(true).' IYUU自动辅种正在初始化...'.PHP_EOL;
AutoReseed::init(); AutoReseed::init();
AutoReseed::call(); AutoReseed::call();
exit(0);

View File

@@ -10,7 +10,9 @@
第三您使用IYUU工具造成的一切损失与IYUU无关。如不接受此条款请不要使用IYUUAutoReseed并立刻删除已经下载的源码。 第三您使用IYUU工具造成的一切损失与IYUU无关。如不接受此条款请不要使用IYUUAutoReseed并立刻删除已经下载的源码。
## 安装脚本,三种方式皆可 ![stars](https://img.shields.io/github/stars/ledccn/IYUUAutoReseed)![forks](https://img.shields.io/github/forks/ledccn/IYUUAutoReseed)![release](https://img.shields.io/github/release/ledccn/IYUUAutoReseed.svg)
## 获取脚本,四种方式皆可
1. 通过git命令安装 1. 通过git命令安装
@@ -23,34 +25,44 @@
3. 直接下载zip源码包 3. 直接下载zip源码包
`https://github.com/ledccn/IYUUAutoReseed/archive/master.zip` `https://github.com/ledccn/IYUUAutoReseed/archive/master.zip`
4. Docker使用
[https://gitee.com/ledc/IYUUAutoReseed/tree/master/docker](https://gitee.com/ledc/IYUUAutoReseed/tree/master/docker)
## 功能 ## 功能
IYUU自动辅种工具目前能对国内大部分的PT站点自动辅种支持下载器集群支持多盘位支持多下载目录支持远程连接等 IYUU自动辅种工具功能分为两大块:自动辅种、自动转移
- 自动辅种目前能对国内大部分的PT站点自动辅种支持下载器集群支持多盘位支持多下载目录支持远程连接等
- 自动转移:可以实现各下载器之间自动转移做种客户端,让下载器各司其职(专职的保种、专职的下载)。
## 原理 ## 原理
IYUU自动辅种工具英文名IYUUAutoReseed是一款PHP语言编写的Private Tracker辅种脚本通过计划任务或常驻内存按指定频率调用transmission、qBittorrent下载软件的API接口提取正在做种的info_hash提交到服务器API接口根据API接口返回的数据拼接种子连接提交给下载器自动辅种各个站点。 IYUU自动辅种工具英文名IYUUAutoReseed是一款PHP语言编写的Private Tracker辅种脚本通过计划任务或常驻内存按指定频率调用transmission、qBittorrent下载软件的API接口提取正在做种的info_hash提交到辅种服务器API接口辅种过程和PT站没有任何交互根据API接口返回的数据拼接种子连接提交给下载器自动辅种各个站点。
## 优势 ## 优势
- 全程自动化,无需人工干预; - 全程自动化,无需人工干预;
- 支持多盘位,多做种目录,多下载器,支持远程连接下载器; - 支持多盘位,多做种目录,多下载器,支持远程下载器;
- 辅种精确度高,精度可配置; - 辅种精确度高,精度可配置;
- 支持微信通知,消息即时达; - 支持微信通知,消息即时达;
- 自动对合集包,进行拆包辅种(暂未开发) - 自动对合集包,进行拆包辅种(暂未开发)
- 安全:所有隐私信息只在本地存储,绝不发送给第三方。
- 拥有专业的问答社区和交流群
## 支持的下载器 ## 支持的下载器
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、HDfans、龙之家、百川PT
## 运行环境 ## 运行环境
具备PHP运行环境的所有平台例如Linux、Windows、MacOS 具备PHP运行环境的所有平台例如Linux、Windows、MacOS
官方下载的记得开启curl、json、mbstring这3个扩展。 官方下载的记得开启curl、json、mbstring这3个扩展。
1. Windows安装php环境https://www.php.net/downloads 1. Windows安装php环境https://www.php.net/downloads
## 下载源码 ## 下载源码
@@ -59,20 +71,32 @@ IYUU自动辅种工具英文名IYUUAutoReseed是一款PHP语言编
## 使用方法 ## 使用方法
详见Wiki - 详见Wikihttps://gitee.com/ledc/IYUUAutoReseed/tree/master/wiki
- 博客https://www.iyuu.cn/
https://gitee.com/ledc/IYUUAutoReseed/tree/master/wiki
## 接口开发文档 ## 接口开发文档
如果您懂得其他语言的开发,可以基于接口做成任何您喜欢的样子比如手机APP二进制包Windows的GUI程序浏览器插件等。欢迎分享您的作品 如果您懂得其他语言的开发可以基于接口做成任何您喜欢的样子比如手机APP二进制包Windows的GUI程序浏览器插件等。欢迎分享您的作品
实时更新的接口文档http://api.iyuu.cn/docs.php 实时更新的接口文档http://api.iyuu.cn/docs.php
## 相关项目
| 项目名| 简介|
| - | --- |
| [IYUU GUI](https://github.com/Rhilip/IYUU-GUI) | 这是一个基于IYUU提供的API产生一个可视化操作项目。目的是为了降低直接上手PHP版IYUUAutoReseed的困难。 |
| [IYUU-Fly](https://github.com/PlexPt/iyuu-fly) | 带GUI的iyuu自动辅种程序。 |
| [goreseed](https://github.com/gaoluhua99/goreseed) | golang编写调用IYUU接口的CLI辅种程序。 |
| [IYUUAutoReseed-web](https://github.com/goveeta/IYUUAutoReseed-web) | |
| [AutoPT](https://github.com/lyssssssss/AutoPT) | 此程序用于自动下载PT免费种子并自动辅种和一体化管理。开发目的为了释放双手专注观影 |
| [flexget_qbittorrent_mod](https://github.com/IvonWei/flexget_qbittorrent_mod) | Flexget qBittorrent插件实现全自动化辅种删除种免费种筛选签到等。|
## 需求提交/错误反馈 ## 需求提交/错误反馈
- 点击链接加入群聊【IYUU自动辅种交流】[https://jq.qq.com/?_wv=1027&k=5JOfOlM][1]
- QQ群859882209 - QQ群859882209[2000人群]931954050[1000人群],924099912[2000人群]
- 问答社区http://wenda.iyuu.cn - 问答社区http://wenda.iyuu.cn
- 博客https://www.iyuu.cn/
- issues https://gitee.com/ledc/IYUUAutoReseed/issues - issues https://gitee.com/ledc/IYUUAutoReseed/issues
## 捐助开发者 ## 捐助开发者
@@ -168,8 +192,3 @@ https://gitee.com/ledc/IYUUAutoReseed/tree/master/wiki
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

View File

@@ -1,52 +0,0 @@
## 下载最新源码的两种方法
### 第一种:下载完整的发行版
**github**[GITHUB仓库 发行版][1]
**gitee**[码云仓库 发行版][2]
下载**`Release.zip`**后缀的压缩包,解压缩后即可配置使用。
### 第二种git clone下载源码
**拉取源码命令,下面两个仓库都可以:**
- github`git clone https://github.com/ledccn/IYUUAutoReseed`
- gitee`git clone https://gitee.com/ledc/IYUUAutoReseed.git`
----------
**完整命令:**
```bash
git clone https://github.com/ledccn/IYUUAutoReseed
cd IYUUAutoReseed
composer install
php ./iyuu.php
```
Windows环境完整过程演示
![git下载源码composer安装.png][3]
```cmd
E:\>git clone https://github.com/ledccn/IYUUAutoReseed
Cloning into 'IYUUAutoReseed'...
remote: Enumerating objects: 189, done.
remote: Counting objects: 100% (189/189), done.
remote: Compressing objects: 100% (120/120), done.
Receiving objects: 97% (814/remote: Total 839 (delta 78), reused 171 (delta 64), pack-reused 650839), 380.00 KiB | 45.0R
Receiving objects: 100% (839/839), 419.04 KiB | 50.00 KiB/s, done.
Resolving deltas: 100% (468/468), done.
E:\>cd IYUUAutoReseed
E:\IYUUAutoReseed>composer install
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Warning: The lock file is not up to date with the latest changes in composer.json. You may be getting outdated dependencies. Run update to update them.
Package operations: 2 installs, 0 updates, 0 removals
- Installing curl/curl (2.2.0): Loading from cache
- Installing owner888/phpspider (v2.1.6): Loading from cache
owner888/phpspider suggests installing ext-pcntl、ext-redis (For better performance. )
Generating autoload files
E:\IYUUAutoReseed>
```
[1]: https://github.com/ledccn/IYUUAutoReseed/releases
[2]: https://gitee.com/ledc/IYUUAutoReseed/releases
[3]: https://www.iyuu.cn/usr/uploads/2020/01/314358689.png

View File

@@ -1,5 +1,64 @@
# 公告栏 # 公告栏
### 2020年7月31日09:25:55
1. IYUUAutoReseed正式建立了docke镜像自动编译2个版本ARM64【iyuucn/iyuuautoreseed:arm64v8】、AMD64【iyuucn/iyuuautoreseed:latest】使用方法[点击查看](https://gitee.com/ledc/IYUUAutoReseed/tree/master/docker)
2. 优化默认流控参数单次最多20个间隔20秒。天空辅种请配置cookie必须更新至最新版本并配置浏览器UA获取UA请访问[http://demo.iyuu.cn](http://demo.iyuu.cn/)
3. v1.10.2版本以后的docker每5小时会自动拉取最新代码从此您只需要看公告更新配置就行啦。
### 2020年7月13日08:00:00
【更新提醒】v1.9.1
优化App.Api.Sites接口请求时携带版本号版本为空或低于v1.9.1会返回旧数据);
新增:异步间隔流控算法,适用所有站点;各站独立、执行时间最优;
【升级方法】
1.异步间隔流控使用方法参考v1.9.1版本的config.sample.php[第242-245行]把他复制到你想应用流控的站点配置项内解释count表示每次辅种的最大数量sleep表示当前站点每次下载种子最小间隔多少秒。
2.url_replace和url_join是为了最大化兼容未来各种类型站点提前准备的可以自定义URL
解释url_replace是替换下载链接时使用让下载链接支持替换任意参数。举例'url_replace'=>array('{passkey}'=>'123456789'), 下载链接https://pt.baidu.com/download.php?id={}&passkey={passkey}替换后变为https://pt.baidu.com/download.php?id={}&passkey=123456789
解释url_join是拼接下载链接是使用让下载链接支持任意自定义参数。举例
'url_join' => array('ipv6=1','https=1'), 下载链接https://pt.baidu.com/download.php?id={}&passkey=123456789拼接后变为https://pt.baidu.com/download.php?id={}&passkey=123456789&ipv6=1&https=1
### 2020年7月12日19:34:03
【新增功能】v1.9.0
转移过滤器、选择器;可以只转移指定路径的种子,也可以排除指定路径的种子,按需转移。
【升级方法】
1.主脚本可以通过git pull或覆盖更新
2.然后对照最新config.sample.php把59行60行手动加入到你的config.php对应位置。
【重要提醒】域名部署SSL证书接口域名支持双协议访问http/https如下
https://api.iyuu.cn
http://api.iyuu.cn
### 2020年4月10日17:43:50
针对多合作站点绑定的优化!
1.没有更新到v1.7.5以上版本的群友,尽快更新!
2.正在使用v1.7.5以上版本的群友请删除config目录下的siteLoginCache_*.json文件重新运行辅种即可同时绑定多个合作站点。
### 2020年4月4日00:57:36
v1.7.5版本发布新增合作站点moecat合作站点有Ourbits、 HD Dolby、HDHome、PTHome、moecat。【更新提醒】手动升级可以直接覆盖git安装的可通过git pull命令升级脚本升级后然后对比config.sample.php手动在config.php增加用户id配置项辅种时会自动进行验证。
如果有问题,可以群内@我或私聊或到问答社区http://wenda.iyuu.cn/提问,必回。
### 2020年4月1日00:56:31
IYUUAutoReseed自动辅种备忘录gitee代码仓库https://gitee.com/ledc/IYUUAutoReseed
github代码仓库https://github.com/ledccn/IYUUAutoReseed
爱语飞飞:[https://iyuu.cn](https://iyuu.cn/)
大卫博客:[https://www.iyuu.cn](https://www.iyuu.cn/)
问答社区:[http://wenda.iyuu.cn](http://wenda.iyuu.cn/)
接口文档http://api.iyuu.cn/docs.php
### 2020年3月14日22:03:02 ### 2020年3月14日22:03:02
时光如梭转眼至v1.6.3感谢一路走来陪伴的朋友们为了共同的爱好我们相聚在这里本版本上线了合作站点认证系统合作站点有Ourbits、 HD Dolby、HDHome。 时光如梭转眼至v1.6.3感谢一路走来陪伴的朋友们为了共同的爱好我们相聚在这里本版本上线了合作站点认证系统合作站点有Ourbits、 HD Dolby、HDHome。

View File

@@ -1,5 +1,5 @@
## 支持用户验证的合作站点:`ourbits`,`hddolby`,`hdhome`,`pthome` ## 支持用户验证的合作站点:`ourbits`,`hddolby`,`hdhome`,`pthome`,`moecat`
截止2020年3月15日13:25:30【文档更新有延迟最终以gitee、github为准】 截止2020年7月17日20:30:53【文档更新有延迟最终以gitee、github为准】
---------- ----------

View File

@@ -85,9 +85,11 @@
#### 问:如何反馈问题? #### 问:如何反馈问题?
1、点击链接加入群聊【IYUU自动辅种交流】[https://jq.qq.com/?_wv=1027&k=5JOfOlM][1] 1、QQ群859882209[2000人.入门群]931954050[1000人.进阶群]
2、QQ群859882209 2、问答社区http://wenda.iyuu.cn
3、issues https://gitee.com/ledc/IYUUAutoReseed/issues 3、博客https://www.iyuu.cn
4、issues https://gitee.com/ledc/IYUUAutoReseed/issues

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日 |
| 浏览器插件 | 暂未开始 | | | | 浏览器插件 | 暂未开始 | | |
| 合集自动拆包辅种 | 暂未开始 | | | | 合集自动拆包辅种 | 暂未开始 | | |

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 | 已完成 |

View File

@@ -4,6 +4,39 @@
------ ------
### 2020年8月2日
- v1.10.2版本以后的docker每5小时会自动拉取最新代码从此您只需要看公告更新配置就行啦。
- IYUUAutoReseed正式建立了docke镜像自动编译2个版本ARM64【iyuucn/iyuuautoreseed:arm64v8】、AMD64【iyuucn/iyuuautoreseed:latest】使用方法[点击查看](https://gitee.com/ledc/IYUUAutoReseed/tree/master/docker)
- 辅种天空的用户,必须更新至最新版本。
优化了默认流控参数单次最多20个间隔20秒。
天空辅种请配置cookie并配置浏览器UA获取UA请访问[http://demo.iyuu.cn](http://demo.iyuu.cn/)
- v1.10.4版本支持qBittorrent v4.1.5 (小钢炮等)
### 2020年7月3日
1. 优化windows的辅种批处理采用环境变量调用
2. 新增站点HDRoute、hdbd、haidan、HDfans
3. 优化curl的连接参数
4. 新增小钢炮专用的docker脚本
5. 新增合作站点MoeCat
6. 微信报表增加版本号提示
7. qBittorrent下载器增加root_folder配置项是否创建子文件夹
### 2020年3月22日
1. 转移种子,设置自动开始开关
2. 添加git自动更新.cmd
3. 优化做种客户端转移配置的提示
4. 人性化加入vendor目录
5. 修复因不支持站点缓存引起的错误提示
6. 新增合作站点hddolby、hdhome、pthome
7. 修复瓷器辅种乱码不美观的问题
8. 简化docker编译文件
9. 优化合作站点登录缓存,检索请求
10. 优化输出提示未填写passkey的站点只提示一次后续自动跳过
11. 增加通用备份脚本
### 2020年2月26日 ### 2020年2月26日
1. 新增葡萄pt 1. 新增葡萄pt

View File

@@ -1,10 +1,10 @@
以下教程以windows为基础进行讲解通用威联通、群晖、铁威马等Linux系统。 以下教程以windows为基础进行讲解通用威联通、群晖、铁威马等Linux系统。
# 重要提示:请先完整阅读完再动手操作!请先完整阅读完再动手操作! # 重要提示:请先完整阅读完再动手操作!
## 第一步 下载压缩包 ## 第一步 下载压缩包
从[码云仓库][1],下载最新源码,源码需安装依赖才可运行必须用composer install安装依赖包解压缩到D盘的根目录下。 从[码云仓库][1]下载最新源码解压缩到D盘的根目录下。
**特殊说明:如果不会用composer安装依赖请去群内下载zip压缩包或者[点此下载vendor.zip][2],解压到上述目录内。** **特殊说明:新手第一次使用建议去群内下载zip压缩包。**
## 第二步 复制一份配置文件 ## 第二步 复制一份配置文件
@@ -15,21 +15,29 @@
提醒千万不要用windows记事本来编辑配置文件 提醒千万不要用windows记事本来编辑配置文件
推荐编辑软件:`VS code``EditPlus``SublimeText``Notepad++`保存格式选UTF8 无BOM 推荐编辑软件:`VS code``EditPlus``SublimeText``Notepad++`保存格式选UTF8 无BOM
配置文件内容较多新手往往很迷茫不知道改哪里在这里我重点强调3个步骤 配置文件内容较多新手往往很迷茫不知道改哪里在这里我重点强调3个步骤
`1.申请爱语飞飞token2.编辑全局客户端; 3.编辑各站的密钥即passkey` `1.申请爱语飞飞token2.编辑全局客户端; 3.编辑各站的密钥即passkey4.配置合作站点的passkey用户id`
其他配置,如果不懂也没有关系;先保持默认,等脚本运行起来,再修改也不迟。另外,修改时一定要细心,仔细看教程。 其他配置,如果不懂也没有关系;先保持默认,等脚本运行起来,再修改也不迟。另外,修改时一定要细心,仔细看教程。
**下面开始详细步骤!!!!** **下面开始详细步骤!!!!**
----------
### 申请爱语飞飞微信通知token新用户访问http://iyuu.cn 申请! ### 申请爱语飞飞微信通知token新用户访问http://iyuu.cn 申请!
1.点击`开始使用`,出现二维码,用`微信扫码` 1.点击`开始使用`,出现二维码,用`微信扫码`
![微信通知1.png][3] ![微信通知1.png][2]
![微信通知2.png][4] ![微信通知2.png][3]
![微信通知3.png][5] ![微信通知3.png][4]
2.复制您的token令牌到`/config/config.php`文件内的`iyuu.cn`对应的配置字段,保存。如图: 2.复制您的token令牌到`/config/config.php`文件内的`iyuu.cn`对应的配置字段,保存。如图:
![微信通知4.png][6] ![微信通知4.png][5]
----------
### 填写全局客户端 ### 填写全局客户端
打开`D:\IYUUAutoReseed\config\config.php`文件,如下图: 打开`D:\IYUUAutoReseed\config\config.php`文件,如下图:
![编辑配置1.png][7] ![编辑配置1.png][6]
上图红框内的是`transmission`的示例配置,绿框是`qBittorrent`的示例配置; 上图红框内的是`transmission`的示例配置,绿框是`qBittorrent`的示例配置;
IYUU自动辅种工具目前支持这两种下载器支持多盘位辅种时全自动对应资源的下载目录。 IYUU自动辅种工具目前支持这两种下载器支持多盘位辅种时全自动对应资源的下载目录。
#### 1编辑`transmission`下载器 #### 1编辑`transmission`下载器
@@ -39,60 +47,84 @@ username是用户名、password是密码。没有用户名和密码的都填
#### 2编辑`qBittorrent`下载器 #### 2编辑`qBittorrent`下载器
方法与上一步相同只需填写ip、端口、用户名、密码即可。如果您是windows下的qBittorrent请打开`WEB用户界面`,设置如下图: 方法与上一步相同只需填写ip、端口、用户名、密码即可。如果您是windows下的qBittorrent请打开`WEB用户界面`,设置如下图:
![qb设置WEB用户界面.png][8] ![qb设置WEB用户界面.png][7]
因为我两个下载器都在用,编辑好后,如图: 因为我两个下载器都在用,编辑好后,如图:
![编辑配置2.png][9] ![编辑配置2.png][8]
----------
### 填写各站秘钥passkey ### 填写各站秘钥passkey
IYUU自动辅种需要您配置各站的passkey目前支持40多个站点的自动辅种没有配置passkey的站点会自动跳过 IYUU自动辅种需要您配置各站的passkey目前支持40多个站点的自动辅种没有配置passkey的站点会自动跳过2019年12月28日补充辅种hdcity、hdchina需要配置cookie。
从各站点的控制面板,找到您的`密钥`复制粘贴过来即可。
从各站点的控制面板或对应地方,找到您的`密钥`复制粘贴过来即可。
配置好后如图: 配置好后如图:
![编辑配置3.png][10] ![编辑配置3.png][9]
---------- ----------
## 第四步,重点讲解Ourbits站点的配置 ## 第四步,合作站点的配置
IYUU自动辅种工具、Ourbits双方达成合作可以对使用接口的用户实现认证。 此处配置也可以参考这里https://www.iyuu.cn/archives/337/
IYUU自动辅种工具与站点达成合作可以对使用接口的用户实现认证。以Ourbits为例进行讲解
### 设置Ourbits ![编辑配置4.png][10]
![编辑配置4.png][11]
`passkey`,在你的控制面板 - 密钥 `passkey`,在你的控制面板 - 密钥
`id`,为用户中心打开后,浏览器地址栏**http://xxxxx.xxx/userdetails.php?id=`46880`**等号=后面的几个数字,如图: `id`,为用户中心打开后,浏览器地址栏**http://xxxxx.xxx/userdetails.php?id=`46880`**等号=后面的几个数字,如图:
![编辑配置6.png][12] ![编辑配置6.png][11]
如果有多个合作站账号,请全部配置,如图:
![合作站点ID.png][12]
到此配置文件编辑完毕请记得保存如果提示保存格式请保存为UTF8无BOM格式。
到此,配置文件编辑完毕,请记得保存。
如果提示保存格式请保存为UTF8无BOM格式。
---------- ----------
## 群晖、铁威马、威联通等Linux的php环境 ## 群晖、铁威马、威联通等Linux的php环境
**群晖、铁威马、威联通自带php运行环境非常简单。** **群晖、铁威马、威联通自带php运行环境非常简单。**
经过上面步骤其实已经完成了配置只需要把脚本复制到设备内用php命令运行脚本即可。 经过上面步骤其实已经完成了配置只需要把脚本复制到设备内用php命令运行脚本即可。
下面是各系统运行php的命令
群晖php`php`
威联通php `/mnt/ext/opt/apache/bin/php`
铁威马php`php`
群晖php命令`php`
威联通php命令 `/mnt/ext/opt/apache/bin/php` ----------
铁威马php命令`php`
**威联通补充几个命令,找到辅种脚本:**
```sh
#查看php版本
/mnt/ext/opt/apache/bin/php -v
#切换admin
sudo -i
#搜索iyuu.php或IYUUAutoReseed
find / -name iyuu.php
#根据上一行命令搜索结果,组成辅种命令:
/mnt/ext/opt/apache/bin/php 找到的路径/iyuu.php
```
---------- ----------
## Windows安装PHP运行环境 ## Windows安装PHP运行环境
也可以去官方下载【https://www.php.net/downloads】 也可以去官方下载【https://www.php.net/downloads】
**特别提醒:官方下载的记得开启`curl、fileinfo、mbstring`这3个扩展。** **特别提醒:官方下载的记得开启`curl、json、mbstring`这3个扩展。**
**特别提醒:官方下载的记得开启`curl、fileinfo、mbstring`这3个扩展。** **特别提醒:官方下载的记得开启`curl、json、mbstring`这3个扩展。**
**特别提醒:官方下载的记得开启`curl、fileinfo、mbstring`这3个扩展。** **特别提醒:官方下载的记得开启`curl、json、mbstring`这3个扩展。**
![php开启扩展.png][13] ![php开启扩展.png][13]
**特别提醒:官方下载的记得开启`curl、fileinfo、mbstring`这3个扩展。**
**特别提醒:官方下载的记得开启`curl、fileinfo、mbstring`这3个扩展。**
**特别提醒:官方下载的记得开启`curl、fileinfo、mbstring`这3个扩展。**
**另外我打包了一份【扩展已开启】,下载地址:** **另外我打包了一份【扩展已开启】,下载地址:**
!!! !!!
<a href="http://dawei.hk:81/php-7.4.2-nts-Win32-vc15-x86.zip" target="_blank"><h3><code>http://dawei.hk:81/php-7.4.2-nts-Win32-vc15-x86.zip</code></h3></a> <a href="http://www.dawei.hk:81/php-7.4.2-nts-Win32-vc15-x86.zip" target="_blank"><h3><code>http://www.dawei.hk:81/php-7.4.2-nts-Win32-vc15-x86.zip</code></h3></a>
<a href="http://dawei.hk:81/php-7.4.2-nts-Win32-vc15-x64.zip" target="_blank"><h3><code>http://dawei.hk:81/php-7.4.2-nts-Win32-vc15-x64.zip</code></h3></a> <a href="http://www.dawei.hk:81/php-7.4.2-nts-Win32-vc15-x64.zip" target="_blank"><h3><code>http://www.dawei.hk:81/php-7.4.2-nts-Win32-vc15-x64.zip</code></h3></a>
!!! !!!
---------- ----------
@@ -100,23 +132,31 @@ IYUU自动辅种工具、Ourbits双方达成合作可以对使用接口的用
链接https://share.weiyun.com/57uYFrn 密码gurkdc 链接https://share.weiyun.com/57uYFrn 密码gurkdc
下载回来是一个ZIP压缩包解压到`D:\IYUUAutoReseed\`目录内,文件结构如图: 下载回来是一个ZIP压缩包解压到`D:\IYUUAutoReseed\`目录内,文件结构如图:
![编辑配置7.png][14] ![编辑配置7.png][14]
点击红框内`执行辅种`即可,也可以运行命令:`php iyuu.php` 重点根据你下载的版本不同、路径不同请把你解压的php环境的路径添加进系统的环境变量内。比如我下载的是`php-7.4.2-nts-Win32-vc15-x86.zip`解压到了D盘根目录下可以这样添加
![请输入图片描述][15]
然后,点击红框内`执行辅种`即可,也可以运行命令:`php iyuu.php`
> 提示新手第一次请去群内下载打包好的Windows版本双击运行即可。
如果你前期严格按照配置一步步操作,这里会正常显示跑动的辅种列表。正常如图: 如果你前期严格按照配置一步步操作,这里会正常显示跑动的辅种列表。正常如图:
![编辑配置8.png][15] ![编辑配置8.png][16]
[1]: https://gitee.com/ledc/IYUUAutoReseed [1]: https://gitee.com/ledc/IYUUAutoReseed
[2]: https://www.iyuu.cn/usr/uploads/2020/02/3155906692.zip [2]: https://www.iyuu.cn/usr/uploads/2019/12/2331433923.png
[3]: https://www.iyuu.cn/usr/uploads/2019/12/2331433923.png [3]: https://www.iyuu.cn/usr/uploads/2019/12/3324442680.png
[4]: https://www.iyuu.cn/usr/uploads/2019/12/3324442680.png [4]: https://www.iyuu.cn/usr/uploads/2019/12/3181272964.png
[5]: https://www.iyuu.cn/usr/uploads/2019/12/3181272964.png [5]: https://www.iyuu.cn/usr/uploads/2019/12/3669828008.png
[6]: https://www.iyuu.cn/usr/uploads/2019/12/3669828008.png [6]: https://www.iyuu.cn/usr/uploads/2019/12/2720183833.png
[7]: https://www.iyuu.cn/usr/uploads/2019/12/2720183833.png [7]: https://www.iyuu.cn/usr/uploads/2019/12/405587689.png
[8]: https://www.iyuu.cn/usr/uploads/2019/12/405587689.png [8]: https://www.iyuu.cn/usr/uploads/2019/12/441257656.png
[9]: https://www.iyuu.cn/usr/uploads/2019/12/441257656.png [9]: https://www.iyuu.cn/usr/uploads/2019/12/890327305.png
[10]: https://www.iyuu.cn/usr/uploads/2019/12/890327305.png [10]: https://www.iyuu.cn/usr/uploads/2019/12/3696916642.png
[11]: https://www.iyuu.cn/usr/uploads/2019/12/3696916642.png [11]: https://www.iyuu.cn/usr/uploads/2019/12/1230288911.png
[12]: https://www.iyuu.cn/usr/uploads/2019/12/1230288911.png [12]: https://www.iyuu.cn/usr/uploads/2020/04/712430028.png
[13]: https://www.iyuu.cn/usr/uploads/2019/12/3007415838.png [13]: https://www.iyuu.cn/usr/uploads/2019/12/3007415838.png
[14]: https://www.iyuu.cn/usr/uploads/2019/12/3189986236.png [14]: https://www.iyuu.cn/usr/uploads/2019/12/3189986236.png
[15]: https://www.iyuu.cn/usr/uploads/2019/12/2523845772.png [15]: https://www.iyuu.cn/usr/uploads/2020/03/686511859.png
[16]: https://www.iyuu.cn/usr/uploads/2019/12/2523845772.png