mirror of
https://gitee.com/ledc/IYUUAutoReseed
synced 2025-08-24 15:04:50 +00:00
Compare commits
14 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
a84b193d14 | ||
|
e2dddfdead | ||
|
f78e9c737c | ||
|
8813afbd73 | ||
|
8b1bd9cdb5 | ||
|
5418c02227 | ||
|
a9d9fb637d | ||
|
4247457cb6 | ||
|
0047450161 | ||
|
15f9905004 | ||
|
63b2bfc2bc | ||
|
c5c2feb9d3 | ||
|
6c06d9fb6a | ||
|
6578397ee3 |
@@ -13,7 +13,7 @@ use IYUU\Library\Table;
|
|||||||
class AutoReseed
|
class AutoReseed
|
||||||
{
|
{
|
||||||
// 版本号
|
// 版本号
|
||||||
const VER = '1.9.8';
|
const VER = '1.9.9';
|
||||||
// RPC连接
|
// RPC连接
|
||||||
private static $links = [];
|
private static $links = [];
|
||||||
// 客户端配置
|
// 客户端配置
|
||||||
@@ -23,7 +23,7 @@ class AutoReseed
|
|||||||
// 不辅种的站点 'pt','hdchina'
|
// 不辅种的站点 'pt','hdchina'
|
||||||
private static $noReseed = [];
|
private static $noReseed = [];
|
||||||
// cookie检查
|
// cookie检查
|
||||||
private static $cookieCheck = ['hdchina','hdcity'];
|
private static $cookieCheck = ['hdchina','hdcity','hdsky'];
|
||||||
// 缓存路径
|
// 缓存路径
|
||||||
public static $cacheDir = TORRENT_PATH.'cache'.DS;
|
public static $cacheDir = TORRENT_PATH.'cache'.DS;
|
||||||
public static $cacheHash = TORRENT_PATH.'cachehash'.DS;
|
public static $cacheHash = TORRENT_PATH.'cachehash'.DS;
|
||||||
@@ -493,7 +493,7 @@ class AutoReseed
|
|||||||
echo "当前站点触发人机验证,已加入排除列表".PHP_EOL;
|
echo "当前站点触发人机验证,已加入排除列表".PHP_EOL;
|
||||||
ff($siteName. '站点,辅种时触发人机验证!');
|
ff($siteName. '站点,辅种时触发人机验证!');
|
||||||
$configALL[$siteName]['limit'] = 1;
|
$configALL[$siteName]['limit'] = 1;
|
||||||
self::$noReseed[] = 'hdchina';
|
self::$noReseed[] = $siteName;
|
||||||
$reseedPass = true;
|
$reseedPass = true;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
@@ -530,6 +530,64 @@ class AutoReseed
|
|||||||
$reseedPass = true;
|
$reseedPass = true;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case 'hdsky':
|
||||||
|
$cookie = $configALL[$siteName]['cookie'];
|
||||||
|
$userAgent = $configALL['default']['userAgent'];
|
||||||
|
// 拼接详情页URL
|
||||||
|
$details_page = str_replace('{}', $value['torrent_id'], 'details.php?id={}&hit=1');
|
||||||
|
$details_url = $protocol .$sites[$sid]['base_url']. '/' .$details_page;
|
||||||
|
print "种子详情页:".$details_url.PHP_EOL;
|
||||||
|
$details_html = download($details_url, $cookie, $userAgent);
|
||||||
|
// 删种检查
|
||||||
|
if (strpos($details_html, '没有该ID的种子') != false) {
|
||||||
|
echo '种子已被删除!'.PHP_EOL;
|
||||||
|
self::sendNotify('404');
|
||||||
|
$reseedPass = true;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
// 提取种子下载地址
|
||||||
|
$remove = 'id={}&passkey={passkey}';
|
||||||
|
$offset = strpos($details_html, str_replace($remove, '', $sites[$sid]['download_page']));
|
||||||
|
if ($offset === false) {
|
||||||
|
ff($siteName. '站点,cookie已过期,请更新后重新辅种!');
|
||||||
|
echo 'cookie已过期,请更新后重新辅种!已加入排除列表'.PHP_EOL;
|
||||||
|
$t = 15;
|
||||||
|
do {
|
||||||
|
echo microtime(true)." cookie已过期,请更新后重新辅种!已加入排除列表!,{$t}秒后继续...".PHP_EOL;
|
||||||
|
sleep(1);
|
||||||
|
} while (--$t > 0);
|
||||||
|
$configALL[$siteName]['cookie'] = '';
|
||||||
|
$reseedPass = true;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
// 种子地址
|
||||||
|
$regex = '/download.php\?(.*?)["|\']/i';
|
||||||
|
if (preg_match($regex, $details_html, $matchs)) {
|
||||||
|
$download_page = str_replace($remove, '', $sites[$sid]['download_page']).str_replace('&', '&', $matchs[1]);
|
||||||
|
}
|
||||||
|
$_url = $protocol . $sites[$sid]['base_url']. '/' . $download_page;
|
||||||
|
print "种子下载页:".$_url.PHP_EOL;
|
||||||
|
$url = download($_url, $cookie, $userAgent);
|
||||||
|
if (strpos($url, '第一次下载提示') != false) {
|
||||||
|
echo "当前站点触发第一次下载提示,已加入排除列表".PHP_EOL;
|
||||||
|
echo "请进入瓷器详情页,点右上角蓝色框:下载种子,成功后更新cookie!".PHP_EOL;
|
||||||
|
$t = 30;
|
||||||
|
do {
|
||||||
|
echo microtime(true)." 请进入瓷器详情页,点右上角蓝色框:下载种子,成功后更新cookie!,{$t}秒后继续...".PHP_EOL;
|
||||||
|
sleep(1);
|
||||||
|
} while (--$t > 0);
|
||||||
|
ff($siteName. '站点,辅种时触发第一次下载提示!');
|
||||||
|
self::$noReseed[] = $siteName;
|
||||||
|
$reseedPass = true;
|
||||||
|
}
|
||||||
|
if (strpos($url, '系统检测到过多的种子下载请求') != false) {
|
||||||
|
echo "当前站点触发人机验证,已加入排除列表".PHP_EOL;
|
||||||
|
ff($siteName. '站点,辅种时触发人机验证!');
|
||||||
|
$configALL[$siteName]['limit'] = 1;
|
||||||
|
self::$noReseed[] = $siteName;
|
||||||
|
$reseedPass = true;
|
||||||
|
}
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
// 默认站点:推送给下载器种子URL链接
|
// 默认站点:推送给下载器种子URL链接
|
||||||
break;
|
break;
|
||||||
@@ -851,6 +909,10 @@ class AutoReseed
|
|||||||
*/
|
*/
|
||||||
private static function wechatMessage()
|
private static function wechatMessage()
|
||||||
{
|
{
|
||||||
|
global $configALL;
|
||||||
|
if (isset($configALL['notify_on_change']) && $configALL['notify_on_change'] && self::$wechatMsg['reseedSuccess'] == 0 && self::$wechatMsg['reseedError'] == 0) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
$br = PHP_EOL;
|
$br = PHP_EOL;
|
||||||
$text = 'IYUU自动辅种-统计报表';
|
$text = 'IYUU自动辅种-统计报表';
|
||||||
$desp = '### 版本号:'. self::VER . $br;
|
$desp = '### 版本号:'. self::VER . $br;
|
||||||
|
@@ -17,6 +17,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.全局默认配置
|
||||||
@@ -261,8 +263,8 @@ return array(
|
|||||||
// 如果需要自动辅种,必须配置
|
// 如果需要自动辅种,必须配置
|
||||||
'passkey' => '',
|
'passkey' => '',
|
||||||
'limitRule' => array(
|
'limitRule' => array(
|
||||||
'count' => 50, // 每次辅种50个
|
'count' => 20, // 每次辅种50个
|
||||||
'sleep' => 15, // 最少休眠15秒
|
'sleep' => 20, // 最少休眠15秒
|
||||||
),
|
),
|
||||||
'url_replace' => array(),
|
'url_replace' => array(),
|
||||||
'url_join' => array(),
|
'url_join' => array(),
|
||||||
|
104
docker/AMD64/Dockerfile
Normal file
104
docker/AMD64/Dockerfile
Normal file
@@ -0,0 +1,104 @@
|
|||||||
|
FROM swoft/alphp:base
|
||||||
|
#FROM swoft/alphp:cli
|
||||||
|
#FROM alpine:latest
|
||||||
|
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"}
|
||||||
|
|
||||||
|
##
|
||||||
|
# ---------- 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-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 /var/www \
|
||||||
|
&& cp /var/www/config/config.sample.php /var/www/config/config.php \
|
||||||
|
&& ln -sf /var/www/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 \
|
||||||
|
# ---------- 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 ["/var/www", "/data"]
|
||||||
|
WORKDIR /var/www
|
4
docker/AMD64/build.sh
Normal file
4
docker/AMD64/build.sh
Normal 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
|
21
docker/Arm64v8/Dockerfile
Normal file
21
docker/Arm64v8/Dockerfile
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
FROM arm64v8/alpine
|
||||||
|
#FROM arm64v8/alpine:latest
|
||||||
|
#FROM arm64v8/alpine:3.12
|
||||||
|
ENV TZ Asia/Shanghai
|
||||||
|
ENV cron="0 9 * * 0"
|
||||||
|
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 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 \
|
||||||
|
&& echo "${TZ}" > /etc/timezone \
|
||||||
|
&& ln -sf /usr/share/zoneinfo/${TZ} /etc/localtime
|
||||||
|
|
||||||
|
WORKDIR /IYUU
|
||||||
|
|
||||||
|
CMD ["sh", "-c", "/usr/bin/php /IYUU/iyuu.php ; /usr/sbin/crond ; (crontab -l ;echo \"$cron /usr/bin/php /IYUU/iyuu.php &> /dev/null\") | crontab - ; tail -f /dev/null"]
|
4
docker/Arm64v8/build.n1.sh
Normal file
4
docker/Arm64v8/build.n1.sh
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
docker build -t iyuu:latest .
|
||||||
|
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:latest
|
||||||
|
docker exec -it IYUUAutoReseed php iyuu.php
|
4
docker/Arm64v8/build.sh
Normal file
4
docker/Arm64v8/build.sh
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
docker build -f Dockerfile -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
|
@@ -1,3 +0,0 @@
|
|||||||
FROM php:7.4-fpm
|
|
||||||
EXPOSE 9000
|
|
||||||
WORKDIR /var/www
|
|
@@ -1,70 +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.sh`
|
|
||||||
|
|
||||||
做完以上步骤,确认没问题后,然后看教程: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
137
docker/Readme.md
Normal 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 | 本地目录或文件:容器目录文件,资源挂载到容器 |
|
||||||
|
| --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
|
@@ -1,9 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
cd /root
|
|
||||||
wget -c https://gitee.com/ledc/IYUUAutoReseed/repository/archive/master.zip -O IYUUAutoReseed.zip
|
|
||||||
unzip -o ./IYUUAutoReseed.zip -d /root
|
|
||||||
rm ./IYUUAutoReseed.zip
|
|
||||||
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
|
|
@@ -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 -it IYUUAutoReseed php iyuu.php
|
|
@@ -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 -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
|
|
7
init.php
7
init.php
@@ -50,17 +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;
|
||||||
@copy(ROOT_PATH . '/config/config.sample.php', ROOT_PATH . '/config/config.php');
|
|
||||||
}
|
}
|
||||||
echo microtime(true).' 全局配置载入完成!'.PHP_EOL;
|
echo microtime(true).' 全局配置载入完成!'.PHP_EOL;
|
||||||
// 读取支持列表
|
// 读取支持列表
|
||||||
|
@@ -77,7 +77,13 @@ IYUU自动辅种工具(英文名:IYUUAutoReseed),是一款PHP语言编
|
|||||||
|
|
||||||
## 相关项目
|
## 相关项目
|
||||||
|
|
||||||
#todo...
|
- 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/lysssssss/AutoPT;简介:此程序用于自动下载PT免费种子,并自动辅种和一体化管理。开发目的为了释放双手,专注观影!
|
||||||
|
- flexget_qbittorrent_mod,地址:https://github.com/IvonWei/flexget_qbittorrent_mod;简介:Flexget qBittorrent插件,实现全自动化辅种、删种、免费种筛选、签到等。
|
||||||
|
|
||||||
|
|
||||||
## 需求提交/错误反馈
|
## 需求提交/错误反馈
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user