mirror of
https://gitee.com/ledc/IYUUAutoReseed
synced 2025-08-24 15:04:50 +00:00
Compare commits
35 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
30410735af | ||
|
99a2894f37 | ||
|
13b176c4a1 | ||
|
afca458acc | ||
|
b8b05ff3bf | ||
|
d402d30aac | ||
|
11c976d2c0 | ||
|
630dc3af92 | ||
|
463e45ee38 | ||
|
b046ecc75f | ||
|
468813a057 | ||
|
fdd5475e37 | ||
|
1f4da154fb | ||
|
419b6eb8cd | ||
|
289df1e126 | ||
|
4d86a9cb9f | ||
|
c79d5e4592 | ||
|
c9fb5c6a6a | ||
|
a744f5e785 | ||
|
84394c3a71 | ||
|
fd61ee86a1 | ||
|
afe1a863ac | ||
|
2a7947b9fa | ||
|
fa6a38b7b3 | ||
|
02eb245ae0 | ||
|
3fc4e14b93 | ||
|
6a5d375044 | ||
|
da0cb81ab2 | ||
|
41ebed71c7 | ||
|
05426489f0 | ||
|
8489b07b35 | ||
|
3e28685731 | ||
|
2d5ab5ae9b | ||
|
fa61ad21e0 | ||
|
1f95e62d95 |
2
.dockerignore
Normal file
2
.dockerignore
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
.git
|
||||||
|
*
|
4
1.Windows辅种.cmd
Normal file
4
1.Windows辅种.cmd
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
@echo off
|
||||||
|
chcp 65001
|
||||||
|
%~dp0php\php %~dp0iyuu.php
|
||||||
|
pause
|
@@ -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
|
@@ -1,4 +1,4 @@
|
|||||||
@echo off
|
@echo off
|
||||||
chcp 65001
|
chcp 65001
|
||||||
php %cd%\iyuu.php
|
php %~dp0iyuu.php
|
||||||
pause
|
pause
|
110
Dockerfile
Normal file
110
Dockerfile
Normal file
@@ -0,0 +1,110 @@
|
|||||||
|
#FROM alpine:latest
|
||||||
|
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="8 11 * * 0"
|
||||||
|
|
||||||
|
##
|
||||||
|
# ---------- 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 \
|
||||||
|
&& echo '2 */5 * * * cd /var/www && git fetch --all && git reset --hard origin/master' >> /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 ["/var/www", "/data"]
|
||||||
|
WORKDIR /var/www
|
||||||
|
|
||||||
|
CMD ["sh", "-c", "/usr/bin/php /var/www/iyuu.php ; /usr/sbin/crond ; (crontab -l ;echo \"$cron /usr/bin/php /var/www/iyuu.php &> /dev/null\") | crontab - ; tail -f /dev/null"]
|
@@ -13,7 +13,7 @@ use IYUU\Library\Table;
|
|||||||
class AutoReseed
|
class AutoReseed
|
||||||
{
|
{
|
||||||
// 版本号
|
// 版本号
|
||||||
const VER = '1.9.9';
|
const VER = '1.10.8';
|
||||||
// RPC连接
|
// RPC连接
|
||||||
private static $links = [];
|
private static $links = [];
|
||||||
// 客户端配置
|
// 客户端配置
|
||||||
@@ -34,8 +34,8 @@ class AutoReseed
|
|||||||
'login' => '/user/login',
|
'login' => '/user/login',
|
||||||
'sites' => '/api/sites',
|
'sites' => '/api/sites',
|
||||||
'infohash'=> '/api/infohash',
|
'infohash'=> '/api/infohash',
|
||||||
'notify' => '/api/notify',
|
|
||||||
'hash' => '/api/hash',
|
'hash' => '/api/hash',
|
||||||
|
'notify' => '/api/notify',
|
||||||
);
|
);
|
||||||
// curl
|
// curl
|
||||||
private static $curl = null;
|
private static $curl = null;
|
||||||
@@ -68,8 +68,9 @@ class AutoReseed
|
|||||||
public static function init()
|
public static function init()
|
||||||
{
|
{
|
||||||
global $configALL;
|
global $configALL;
|
||||||
echo "正在初始化运行参数,版本号:".self::VER.PHP_EOL;
|
echo '正在初始化运行参数,版本号:'.self::VER.PHP_EOL;
|
||||||
sleep(mt_rand(1, 3));
|
echo '当前时间:'.date('Y-m-d H:i:s').PHP_EOL;
|
||||||
|
//sleep(mt_rand(1, 5));
|
||||||
self::backup('config', $configALL);
|
self::backup('config', $configALL);
|
||||||
self::$curl = new Curl();
|
self::$curl = new Curl();
|
||||||
self::$curl->setOpt(CURLOPT_SSL_VERIFYPEER, false);
|
self::$curl->setOpt(CURLOPT_SSL_VERIFYPEER, false);
|
||||||
@@ -81,9 +82,6 @@ class AutoReseed
|
|||||||
// 显示支持站点列表
|
// 显示支持站点列表
|
||||||
self::ShowTableSites();
|
self::ShowTableSites();
|
||||||
self::$clients = isset($configALL['default']['clients']) && $configALL['default']['clients'] ? $configALL['default']['clients'] : array();
|
self::$clients = isset($configALL['default']['clients']) && $configALL['default']['clients'] ? $configALL['default']['clients'] : array();
|
||||||
if (empty(self::$clients)) {
|
|
||||||
die('全局客户端为空!');
|
|
||||||
}
|
|
||||||
|
|
||||||
// 递归删除上次历史记录
|
// 递归删除上次历史记录
|
||||||
IFile::rmdir(self::$cacheDir, true);
|
IFile::rmdir(self::$cacheDir, true);
|
||||||
@@ -107,28 +105,26 @@ class AutoReseed
|
|||||||
'【IYUU自动辅种交流】QQ群:859882209、931954050'.PHP_EOL,
|
'【IYUU自动辅种交流】QQ群:859882209、931954050'.PHP_EOL,
|
||||||
'正在连接IYUUAutoReseed服务器,查询支持列表……'.PHP_EOL
|
'正在连接IYUUAutoReseed服务器,查询支持列表……'.PHP_EOL
|
||||||
];
|
];
|
||||||
foreach ($list as $value) {
|
foreach ($list as $v) {
|
||||||
echo $value.PHP_EOL;
|
echo $v.PHP_EOL;
|
||||||
}
|
}
|
||||||
$res = self::$curl->get(self::$apiUrl.self::$endpoints['sites'].'?sign='.Oauth::getSign().'&version='.self::VER);
|
$res = self::$curl->get(self::$apiUrl.self::$endpoints['sites'].'?sign='.Oauth::getSign().'&version='.self::VER);
|
||||||
$rs = json_decode($res->response, true);
|
$rs = json_decode($res->response, true);
|
||||||
$sites = isset($rs['data']['sites']) && $rs['data']['sites'] ? $rs['data']['sites'] : false;
|
$sites = isset($rs['data']['sites']) && $rs['data']['sites'] ? $rs['data']['sites'] : [];
|
||||||
// 数据写入本地
|
// 数据写入本地
|
||||||
if ($sites) {
|
if (empty($sites)) {
|
||||||
self::$sites = array_column($sites, null, 'id');
|
if (!empty($rs['msg'])) {
|
||||||
$json = array_column($sites, null, 'site');
|
|
||||||
ksort($json);
|
|
||||||
$json = json_encode($json, JSON_UNESCAPED_UNICODE);
|
|
||||||
$myfile = ROOT_PATH.DS.'config'.DS.'sites.json';
|
|
||||||
$file_pointer = @fopen($myfile, "w");
|
|
||||||
$worldsnum = @fwrite($file_pointer, $json);
|
|
||||||
@fclose($file_pointer);
|
|
||||||
} else {
|
|
||||||
if (isset($rs['msg']) && $rs['msg']) {
|
|
||||||
die($rs['msg'].PHP_EOL);
|
die($rs['msg'].PHP_EOL);
|
||||||
}
|
}
|
||||||
die('远端服务器无响应,请稍后再试!!!');
|
die('网络故障或远端服务器无响应,请稍后再试!!!');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
self::$sites = array_column($sites, null, 'id');
|
||||||
|
$json = array_column($sites, null, 'site');
|
||||||
|
ksort($json);
|
||||||
|
$sitesConfig = ROOT_PATH.DS.'config'.DS.'sites.json';
|
||||||
|
file_put_contents($sitesConfig, \json_encode($json, JSON_UNESCAPED_UNICODE));
|
||||||
|
|
||||||
$data = [];
|
$data = [];
|
||||||
$i = $j = $k = 0; // i列、j序号、k行
|
$i = $j = $k = 0; // i列、j序号、k行
|
||||||
foreach ($sites as $v) {
|
foreach ($sites as $v) {
|
||||||
@@ -167,9 +163,9 @@ class AutoReseed
|
|||||||
self::$links[$k]['BT_backup'] = isset($v['BT_backup']) && $v['BT_backup'] ? $v['BT_backup'] : '';
|
self::$links[$k]['BT_backup'] = isset($v['BT_backup']) && $v['BT_backup'] ? $v['BT_backup'] : '';
|
||||||
self::$links[$k]['root_folder'] = isset($v['root_folder']) ? $v['root_folder'] : 1;
|
self::$links[$k]['root_folder'] = isset($v['root_folder']) ? $v['root_folder'] : 1;
|
||||||
$result = $client->status();
|
$result = $client->status();
|
||||||
print $v['type'].':'.$v['host']." Rpc连接 [{$result}] \n";
|
print $v['type'].':'.$v['host']." Rpc连接 [{$result}]".PHP_EOL;
|
||||||
// 检查转移做种 (self::$move为空,移动配置为真)
|
// 检查转移做种 (self::$move为空,移动配置为真)
|
||||||
if (is_null(self::$move) && isset($v['move']) && $v['move']) {
|
if (is_null(self::$move) && !empty($v['move'])) {
|
||||||
self::$move = array($k,$v['move']);
|
self::$move = array($k,$v['move']);
|
||||||
}
|
}
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
@@ -197,19 +193,14 @@ class AutoReseed
|
|||||||
case 'transmission':
|
case 'transmission':
|
||||||
$extra_options['paused'] = isset($extra_options['paused']) ? $extra_options['paused'] : true;
|
$extra_options['paused'] = isset($extra_options['paused']) ? $extra_options['paused'] : true;
|
||||||
if ($is_url) {
|
if ($is_url) {
|
||||||
$result = self::$links[$rpcKey]['rpc']->add($torrent, $save_path, $extra_options); // 种子URL添加下载任务
|
$result = self::$links[$rpcKey]['rpc']->add($torrent, $save_path, $extra_options); // URL添加
|
||||||
} else {
|
} else {
|
||||||
$result = self::$links[$rpcKey]['rpc']->add_metainfo($torrent, $save_path, $extra_options); // 种子元数据添加下载任务
|
$result = self::$links[$rpcKey]['rpc']->add_metainfo($torrent, $save_path, $extra_options); // 元数据添加
|
||||||
}
|
}
|
||||||
if (isset($result['result']) && $result['result'] == 'success') {
|
if (isset($result['result']) && $result['result'] == 'success') {
|
||||||
$id = $name = '';
|
$_key = isset($result['arguments']['torrent-added']) ? 'torrent-added' : 'torrent-duplicate';
|
||||||
if (isset($result['arguments']['torrent-duplicate'])) {
|
$id = $result['arguments'][$_key]['id'];
|
||||||
$id = $result['arguments']['torrent-duplicate']['id'];
|
$name = $result['arguments'][$_key]['name'];
|
||||||
$name = $result['arguments']['torrent-duplicate']['name'];
|
|
||||||
} elseif (isset($result['arguments']['torrent-added'])) {
|
|
||||||
$id = $result['arguments']['torrent-added']['id'];
|
|
||||||
$name = $result['arguments']['torrent-added']['name'];
|
|
||||||
}
|
|
||||||
print "名字:" .$name . PHP_EOL;
|
print "名字:" .$name . PHP_EOL;
|
||||||
print "********RPC添加下载任务成功 [" .$result['result']. "] (id=" .$id. ")".PHP_EOL.PHP_EOL;
|
print "********RPC添加下载任务成功 [" .$result['result']. "] (id=" .$id. ")".PHP_EOL.PHP_EOL;
|
||||||
return true;
|
return true;
|
||||||
@@ -233,12 +224,11 @@ class AutoReseed
|
|||||||
// 是否创建根目录
|
// 是否创建根目录
|
||||||
$extra_options['root_folder'] = self::$links[$rpcKey]['root_folder'] ? 'true' : 'false';
|
$extra_options['root_folder'] = self::$links[$rpcKey]['root_folder'] ? 'true' : 'false';
|
||||||
if ($is_url) {
|
if ($is_url) {
|
||||||
$result = self::$links[$rpcKey]['rpc']->add($torrent, $save_path, $extra_options); // 种子URL添加下载任务
|
$result = self::$links[$rpcKey]['rpc']->add($torrent, $save_path, $extra_options); // URL添加
|
||||||
} else {
|
} else {
|
||||||
$extra_options['name'] = 'torrents';
|
$extra_options['name'] = 'torrents';
|
||||||
$rand = mt_rand(10, 42949672);
|
$extra_options['filename'] = time().'.torrent';
|
||||||
$extra_options['filename'] = intval($rand).'.torrent';
|
$result = self::$links[$rpcKey]['rpc']->add_metainfo($torrent, $save_path, $extra_options); // 元数据添加
|
||||||
$result = self::$links[$rpcKey]['rpc']->add_metainfo($torrent, $save_path, $extra_options); // 种子元数据添加下载任务
|
|
||||||
}
|
}
|
||||||
if ($result === 'Ok.') {
|
if ($result === 'Ok.') {
|
||||||
print "********RPC添加下载任务成功 [{$result}]".PHP_EOL.PHP_EOL;
|
print "********RPC添加下载任务成功 [{$result}]".PHP_EOL.PHP_EOL;
|
||||||
@@ -276,7 +266,6 @@ class AutoReseed
|
|||||||
global $configALL;
|
global $configALL;
|
||||||
// 支持站点数量
|
// 支持站点数量
|
||||||
self::$wechatMsg['sitesCount'] = count(self::$sites);
|
self::$wechatMsg['sitesCount'] = count(self::$sites);
|
||||||
$sites = self::$sites;
|
|
||||||
// 遍历客户端 开始
|
// 遍历客户端 开始
|
||||||
foreach (self::$links as $k => $v) {
|
foreach (self::$links as $k => $v) {
|
||||||
if (empty($v)) {
|
if (empty($v)) {
|
||||||
@@ -291,11 +280,10 @@ class AutoReseed
|
|||||||
echo "正在从下载器 clients_".$k." 获取种子哈希……".PHP_EOL;
|
echo "正在从下载器 clients_".$k." 获取种子哈希……".PHP_EOL;
|
||||||
$hashArray = self::$links[$k]['rpc']->getList();
|
$hashArray = self::$links[$k]['rpc']->getList();
|
||||||
if (empty($hashArray)) {
|
if (empty($hashArray)) {
|
||||||
// 失败
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
self::backup('clients_'.$k, $hashArray);
|
self::backup('clients_'.$k, $hashArray);
|
||||||
$infohash_Dir = $hashArray['hashString'];
|
$infohash_Dir = $hashArray['hashString']; // 哈希目录对应字典
|
||||||
unset($hashArray['hashString']);
|
unset($hashArray['hashString']);
|
||||||
// 签名
|
// 签名
|
||||||
$hashArray['sign'] = Oauth::getSign();
|
$hashArray['sign'] = Oauth::getSign();
|
||||||
@@ -311,19 +299,19 @@ class AutoReseed
|
|||||||
self::$curl->setOpt(CURLOPT_CONNECTTIMEOUT, $connecttimeout);
|
self::$curl->setOpt(CURLOPT_CONNECTTIMEOUT, $connecttimeout);
|
||||||
self::$curl->setOpt(CURLOPT_TIMEOUT, $timeout);
|
self::$curl->setOpt(CURLOPT_TIMEOUT, $timeout);
|
||||||
}
|
}
|
||||||
// P($infohash_Dir); // 调试:打印目录对应表
|
// p($infohash_Dir); // 调试:打印目录对应表
|
||||||
echo "正在向服务器提交 clients_".$k." 种子哈希……".PHP_EOL;
|
echo "正在向服务器提交 clients_".$k." 种子哈希……".PHP_EOL;
|
||||||
$res = self::$curl->post(self::$apiUrl . self::$endpoints['infohash'], $hashArray);
|
$res = self::$curl->post(self::$apiUrl . self::$endpoints['infohash'], $hashArray);
|
||||||
$res = json_decode($res->response, true);
|
$res = json_decode($res->response, true);
|
||||||
// 写返回日志
|
// 写返回日志
|
||||||
wlog($res, 'reseed'.$k);
|
wlog($res, 'reseed'.$k);
|
||||||
$reseed = isset($res['data']) && $res['data'] ? $res['data'] : array();
|
$data = isset($res['data']) && $res['data'] ? $res['data'] : array();
|
||||||
if (empty($reseed)) {
|
if (empty($data)) {
|
||||||
echo "clients_".$k." 没有查询到可辅种数据".PHP_EOL.PHP_EOL;
|
echo "clients_".$k." 没有查询到可辅种数据".PHP_EOL.PHP_EOL;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
// 判断返回值
|
// 判断返回值
|
||||||
if (empty($res['msg'])) {
|
if (isset($res['ret']) && $res['ret']==200) {
|
||||||
echo "clients_".$k." 辅种数据下载成功!!!".PHP_EOL.PHP_EOL;
|
echo "clients_".$k." 辅种数据下载成功!!!".PHP_EOL.PHP_EOL;
|
||||||
echo '【提醒】未配置passkey的站点都会跳过!'.PHP_EOL.PHP_EOL;
|
echo '【提醒】未配置passkey的站点都会跳过!'.PHP_EOL.PHP_EOL;
|
||||||
} else {
|
} else {
|
||||||
@@ -332,291 +320,187 @@ class AutoReseed
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
// 遍历当前客户端可辅种数据
|
// 遍历当前客户端可辅种数据
|
||||||
foreach ($reseed as $info_hash => $vv) {
|
foreach ($data as $info_hash => $reseed) {
|
||||||
// 当前种子哈希对应的目录
|
$downloadDir = $infohash_Dir[$info_hash]; // 辅种目录
|
||||||
$downloadDir = $infohash_Dir[$info_hash];
|
foreach ($reseed['torrent'] as $id => $value) {
|
||||||
foreach ($vv['torrent'] as $id => $value) {
|
|
||||||
// 匹配的辅种数据累加
|
// 匹配的辅种数据累加
|
||||||
self::$wechatMsg['reseedCount']++;
|
self::$wechatMsg['reseedCount']++;
|
||||||
// 站点id
|
// 站点id
|
||||||
$sid = $value['sid'];
|
$sid = $value['sid'];
|
||||||
// 种子id
|
// 种子id
|
||||||
$torrent_id = $value['torrent_id'];
|
$torrent_id = $value['torrent_id'];
|
||||||
// 站点名
|
// 检查禁用站点
|
||||||
if (empty($sites[$sid]['site'])) {
|
if (empty(self::$sites[$sid])) {
|
||||||
echo '-----当前站点不受支持,已跳过。' .PHP_EOL.PHP_EOL;
|
echo '-----当前站点不受支持,已跳过。' .PHP_EOL.PHP_EOL;
|
||||||
self::$wechatMsg['reseedSkip']++;
|
self::$wechatMsg['reseedSkip']++;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
$siteName = $sites[$sid]['site'];
|
// 站名
|
||||||
|
$siteName = self::$sites[$sid]['site'];
|
||||||
// 错误通知
|
// 错误通知
|
||||||
self::setNotify($siteName, $sid, $torrent_id);
|
self::setNotify($siteName, $sid, $torrent_id);
|
||||||
// 页面规则
|
|
||||||
$download_page = str_replace('{}', $torrent_id, $sites[$sid]['download_page']);
|
|
||||||
// 协议
|
// 协议
|
||||||
$protocol = $sites[$sid]['is_https'] == 0 ? 'http://' : 'https://';
|
$protocol = self::$sites[$sid]['is_https'] == 0 ? 'http://' : 'https://';
|
||||||
$_url = $protocol . $sites[$sid]['base_url']. '/' .$download_page;
|
// 种子页规则
|
||||||
|
$download_page = str_replace('{}', $torrent_id, self::$sites[$sid]['download_page']);
|
||||||
|
|
||||||
|
// 临时种子连接(会写入辅种日志)
|
||||||
|
$_url = $protocol . self::$sites[$sid]['base_url']. '/' .$download_page;
|
||||||
/**
|
/**
|
||||||
* 前置检测
|
* 辅种前置检查
|
||||||
*/
|
*/
|
||||||
// 配置与passkey检测
|
if (!self::reseedCheck($k, $value, $infohash_Dir, $downloadDir, $_url)) {
|
||||||
if (empty($configALL[$siteName]) || empty($configALL[$siteName]['passkey'])) {
|
|
||||||
//echo '-------因当前' .$siteName. "站点未设置passkey,已跳过!!".PHP_EOL.PHP_EOL;
|
|
||||||
self::$wechatMsg['reseedSkip']++;
|
|
||||||
continue;
|
continue;
|
||||||
} else {
|
|
||||||
echo "clients_".$k."正在辅种... {$siteName}".PHP_EOL;
|
|
||||||
}
|
|
||||||
// cookie检测
|
|
||||||
if (in_array($siteName, self::$cookieCheck) && empty($configALL[$siteName]['cookie'])) {
|
|
||||||
echo '-------因当前' .$siteName. '站点未设置cookie,已跳过!!' .PHP_EOL.PHP_EOL;
|
|
||||||
self::$wechatMsg['reseedSkip']++;
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
// 流控检测
|
|
||||||
if (isset($configALL[$siteName]['limit'])) {
|
|
||||||
echo "-------因当前" .$siteName. "站点触发流控,已跳过!! {$_url}".PHP_EOL.PHP_EOL;
|
|
||||||
// 流控日志
|
|
||||||
if ($siteName == 'hdchina') {
|
|
||||||
$details_page = str_replace('{}', $torrent_id, 'details.php?id={}&hit=1');
|
|
||||||
$_url = 'https://' .$sites[$sid]['base_url']. '/' .$details_page;
|
|
||||||
}
|
|
||||||
wlog('clients_'.$k.PHP_EOL.$downloadDir.PHP_EOL."-------因当前" .$siteName. "站点触发流控,已跳过!! {$_url}".PHP_EOL.PHP_EOL, 'reseedLimit');
|
|
||||||
self::$wechatMsg['reseedSkip']++;
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
// 重复做种检测
|
|
||||||
if (isset($value['info_hash']) && isset($infohash_Dir[$value['info_hash']])) {
|
|
||||||
echo '-------与客户端现有种子重复:'.$_url.PHP_EOL.PHP_EOL;
|
|
||||||
self::$wechatMsg['reseedRepeat']++;
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
// 历史添加检测
|
|
||||||
if (is_file(self::$cacheHash . $value['info_hash'].'.txt')) {
|
|
||||||
echo '-------当前种子上次辅种已成功添加,已跳过! '.$_url.PHP_EOL.PHP_EOL;
|
|
||||||
self::$wechatMsg['reseedPass']++;
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
// 检查站点是否可以辅种
|
|
||||||
if (in_array($siteName, self::$noReseed)) {
|
|
||||||
echo '-------已跳过不辅种的站点:'.$_url.PHP_EOL.PHP_EOL;
|
|
||||||
self::$wechatMsg['reseedPass']++;
|
|
||||||
// 写入日志文件,供用户手动辅种
|
|
||||||
wlog('clients_'.$k.PHP_EOL.$downloadDir.PHP_EOL.$_url.PHP_EOL.PHP_EOL, $siteName);
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
// 操作站点流控的配置
|
|
||||||
if (isset($configALL[$siteName]['limitRule']) && $configALL[$siteName]['limitRule']) {
|
|
||||||
$limitRule = $configALL[$siteName]['limitRule'];
|
|
||||||
if (isset($limitRule['count']) && isset($limitRule['sleep'])) {
|
|
||||||
if ($limitRule['count'] <= 0) {
|
|
||||||
echo '-------当前站点辅种数量已满足规则,保障账号安全已跳过:'.$_url.PHP_EOL.PHP_EOL;
|
|
||||||
self::$wechatMsg['reseedPass']++;
|
|
||||||
continue;
|
|
||||||
} else {
|
|
||||||
// 异步间隔流控算法:各站独立、执行时间最优
|
|
||||||
$lastTime = isset($limitRule['time']) ? $limitRule['time'] : 0; // 最近一次辅种成功的时间
|
|
||||||
if ($lastTime) {
|
|
||||||
$interval = time() - $lastTime; // 间隔时间
|
|
||||||
if ($interval < $limitRule['sleep']) {
|
|
||||||
$t = $limitRule['sleep'] - $interval + mt_rand(1, 5);
|
|
||||||
do {
|
|
||||||
echo microtime(true)." 为账号安全,辅种进程休眠 {$t} 秒后继续...".PHP_EOL;
|
|
||||||
sleep(1);
|
|
||||||
} while (--$t > 0);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
echo '-------当前站点流控规则错误,缺少count或sleep参数!请重新配置!'.$_url.PHP_EOL.PHP_EOL;
|
|
||||||
self::$wechatMsg['reseedPass']++;
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* 种子URL组合方式区分
|
* 种子推送方式区分
|
||||||
*/
|
*/
|
||||||
$url = self::getTorrentUrl($siteName, $_url);
|
if (in_array($siteName, self::$cookieCheck)) {
|
||||||
$reseedPass = false; // 标志:跳过辅种
|
// 特殊站点:种子元数据推送给下载器
|
||||||
// 特殊站点:种子元数据推送给下载器
|
$reseedPass = false; // 标志:跳过辅种
|
||||||
switch ($siteName) {
|
$cookie = trim($configALL[$siteName]['cookie']);
|
||||||
case 'hdchina':
|
$userAgent = $configALL['default']['userAgent'];
|
||||||
$cookie = $configALL[$siteName]['cookie'];
|
switch ($siteName) {
|
||||||
$userAgent = $configALL['default']['userAgent'];
|
case 'hdchina':
|
||||||
// 拼接详情页URL
|
// 请求详情页
|
||||||
$details_page = str_replace('{}', $value['torrent_id'], 'details.php?id={}&hit=1');
|
$details_html = self::getNexusPHPdetailsPage($protocol, $value, $cookie, $userAgent);
|
||||||
$details_url = $protocol .$sites[$sid]['base_url']. '/' .$details_page;
|
if (is_null($details_html)) {
|
||||||
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;
|
|
||||||
}
|
|
||||||
// 提取种子下载地址
|
|
||||||
$offset = strpos($details_html, str_replace('{hash}', '', $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\?hash\=(.*?)[\"|\']/i"; // 提取种子hash的正则表达式
|
|
||||||
preg_match($regex, $details_html, $matchs);
|
|
||||||
$download_page = str_replace('{hash}', $matchs[1], $sites[$sid]['download_page']);
|
|
||||||
$_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[] = 'hdchina';
|
|
||||||
$reseedPass = true;
|
|
||||||
}
|
|
||||||
if (strpos($url, '系统检测到过多的种子下载请求') != false) {
|
|
||||||
echo "当前站点触发人机验证,已加入排除列表".PHP_EOL;
|
|
||||||
ff($siteName. '站点,辅种时触发人机验证!');
|
|
||||||
$configALL[$siteName]['limit'] = 1;
|
|
||||||
self::$noReseed[] = $siteName;
|
|
||||||
$reseedPass = true;
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
case 'hdcity':
|
|
||||||
$cookie = $configALL[$siteName]['cookie'];
|
|
||||||
$userAgent = $configALL['default']['userAgent'];
|
|
||||||
print "种子:".$_url.PHP_EOL;
|
|
||||||
if (isset($configALL[$siteName]['cuhash'])) {
|
|
||||||
// 已获取cuhash
|
|
||||||
# code...
|
|
||||||
} else {
|
|
||||||
// 获取cuhash
|
|
||||||
$html = download($protocol .$sites[$sid]['base_url']. '/pt', $cookie, $userAgent);
|
|
||||||
// 提取种子下载地址
|
|
||||||
$offset = strpos($html, 'cuhash=');
|
|
||||||
if ($offset === false) {
|
|
||||||
ff($siteName. '站点,cookie已过期,请更新后重新辅种!');
|
|
||||||
echo 'cookie已过期,请更新后重新辅种!'.PHP_EOL;
|
|
||||||
$configALL[$siteName]['cookie'] = '';
|
|
||||||
$reseedPass = true;
|
$reseedPass = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
$regex = "/cuhash\=(.*?)[\"|\']/i"; // 提取种子cuhash的正则表达式
|
// 搜索种子地址
|
||||||
preg_match($regex, $html, $matchs);
|
$remove = '{hash}';
|
||||||
$configALL[$siteName]['cuhash'] = $matchs[1];
|
$offset = strpos($details_html, str_replace($remove, '', self::$sites[$sid]['download_page']));
|
||||||
}
|
if ($offset === false) {
|
||||||
$url = str_replace('{cuhash}', $configALL[$siteName]['cuhash'], $_url);
|
$reseedPass = true;
|
||||||
// 城市下载种子时会302转向
|
self::cookieExpired($siteName); // cookie失效
|
||||||
$url = download($url, $cookie, $userAgent);
|
break;
|
||||||
if (strpos($url, 'Non-exist torrent id!') != false) {
|
}
|
||||||
echo '种子已被删除!'.PHP_EOL;
|
// 提取种子地址
|
||||||
self::sendNotify('404');
|
$regex = "/download.php\?hash\=(.*?)[\"|\']/i"; // 提取种子hash的正则表达式
|
||||||
// 标志:跳过辅种
|
if (preg_match($regex, $details_html, $matchs)) {
|
||||||
$reseedPass = true;
|
// 拼接种子地址
|
||||||
}
|
$_url = str_replace($remove, $matchs[1], $_url);
|
||||||
break;
|
echo "下载种子:".$_url.PHP_EOL;
|
||||||
case 'hdsky':
|
$url = download($_url, $cookie, $userAgent);
|
||||||
$cookie = $configALL[$siteName]['cookie'];
|
if (strpos($url, '第一次下载提示') != false) {
|
||||||
$userAgent = $configALL['default']['userAgent'];
|
self::$noReseed[] = $siteName;
|
||||||
// 拼接详情页URL
|
$reseedPass = true;
|
||||||
$details_page = str_replace('{}', $value['torrent_id'], 'details.php?id={}&hit=1');
|
|
||||||
$details_url = $protocol .$sites[$sid]['base_url']. '/' .$details_page;
|
echo "当前站点触发第一次下载提示,已加入排除列表".PHP_EOL;
|
||||||
print "种子详情页:".$details_url.PHP_EOL;
|
sleepIYUU(30, '请进入瓷器详情页,点右上角蓝色框:下载种子,成功后更新cookie!');
|
||||||
$details_html = download($details_url, $cookie, $userAgent);
|
ff($siteName. '站点,辅种时触发第一次下载提示!');
|
||||||
// 删种检查
|
break;
|
||||||
if (strpos($details_html, '没有该ID的种子') != false) {
|
}
|
||||||
echo '种子已被删除!'.PHP_EOL;
|
if (strpos($url, '系统检测到过多的种子下载请求') != false) {
|
||||||
self::sendNotify('404');
|
$configALL[$siteName]['limit'] = 1;
|
||||||
$reseedPass = true;
|
$reseedPass = true;
|
||||||
|
|
||||||
|
echo "当前站点触发人机验证,已加入流控列表".PHP_EOL;
|
||||||
|
ff($siteName. '站点,辅种时触发人机验证!');
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
$reseedPass = true;
|
||||||
|
sleepIYUU(15, $siteName.'正则表达式未匹配到种子地址,可能站点已更新,请联系IYUU作者!');
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
case 'hdcity':
|
||||||
// 提取种子下载地址
|
$details_url = $protocol . self::$sites[$sid]['base_url'] . '/t-' .$torrent_id;
|
||||||
$remove = 'id={}&passkey={passkey}';
|
print "种子详情页:".$details_url.PHP_EOL;
|
||||||
$offset = strpos($details_html, str_replace($remove, '', $sites[$sid]['download_page']));
|
if (empty($configALL[$siteName]['cuhash'])) {
|
||||||
if ($offset === false) {
|
// 请求包含cuhash的列表页
|
||||||
ff($siteName. '站点,cookie已过期,请更新后重新辅种!');
|
$html = download($protocol .self::$sites[$sid]['base_url']. '/pt', $cookie, $userAgent);
|
||||||
echo 'cookie已过期,请更新后重新辅种!已加入排除列表'.PHP_EOL;
|
// 搜索cuhash
|
||||||
$t = 15;
|
$offset = strpos($html, 'cuhash=');
|
||||||
do {
|
if ($offset === false) {
|
||||||
echo microtime(true)." cookie已过期,请更新后重新辅种!已加入排除列表!,{$t}秒后继续...".PHP_EOL;
|
self::cookieExpired($siteName); // cookie失效
|
||||||
sleep(1);
|
$reseedPass = true;
|
||||||
} while (--$t > 0);
|
break;
|
||||||
$configALL[$siteName]['cookie'] = '';
|
}
|
||||||
$reseedPass = true;
|
// 提取cuhash
|
||||||
|
$regex = "/cuhash\=(.*?)[\"|\']/i"; // 提取种子cuhash的正则表达式
|
||||||
|
if (preg_match($regex, $html, $matchs)) {
|
||||||
|
$configALL[$siteName]['cuhash'] = $matchs[1];
|
||||||
|
} else {
|
||||||
|
$reseedPass = true;
|
||||||
|
sleepIYUU(15, $siteName.'正则表达式未匹配到cuhash,可能站点已更新,请联系IYUU作者!');
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// 拼接种子地址
|
||||||
|
$remove = '{cuhash}';
|
||||||
|
$_url = str_replace($remove, $configALL[$siteName]['cuhash'], $_url);
|
||||||
|
// 城市下载种子会302转向
|
||||||
|
echo "下载种子:".$_url.PHP_EOL;
|
||||||
|
$url = download($_url, $cookie, $userAgent);
|
||||||
|
if (strpos($url, 'Non-exist torrent id!') != false) {
|
||||||
|
echo '种子已被删除!'.PHP_EOL;
|
||||||
|
self::sendNotify('404');
|
||||||
|
// 标志:跳过辅种
|
||||||
|
$reseedPass = true;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
case 'hdsky':
|
||||||
// 种子地址
|
// 请求详情页
|
||||||
$regex = '/download.php\?(.*?)["|\']/i';
|
$details_html = self::getNexusPHPdetailsPage($protocol, $value, $cookie, $userAgent);
|
||||||
if (preg_match($regex, $details_html, $matchs)) {
|
if (is_null($details_html)) {
|
||||||
$download_page = str_replace($remove, '', $sites[$sid]['download_page']).str_replace('&', '&', $matchs[1]);
|
$reseedPass = true;
|
||||||
}
|
break;
|
||||||
$_url = $protocol . $sites[$sid]['base_url']. '/' . $download_page;
|
}
|
||||||
print "种子下载页:".$_url.PHP_EOL;
|
// 搜索种子地址
|
||||||
$url = download($_url, $cookie, $userAgent);
|
$remove = 'id={}&passkey={passkey}';
|
||||||
if (strpos($url, '第一次下载提示') != false) {
|
$offset = strpos($details_html, str_replace($remove, '', self::$sites[$sid]['download_page']));
|
||||||
echo "当前站点触发第一次下载提示,已加入排除列表".PHP_EOL;
|
if ($offset === false) {
|
||||||
echo "请进入瓷器详情页,点右上角蓝色框:下载种子,成功后更新cookie!".PHP_EOL;
|
self::cookieExpired($siteName); // cookie失效
|
||||||
$t = 30;
|
$reseedPass = true;
|
||||||
do {
|
break;
|
||||||
echo microtime(true)." 请进入瓷器详情页,点右上角蓝色框:下载种子,成功后更新cookie!,{$t}秒后继续...".PHP_EOL;
|
}
|
||||||
sleep(1);
|
// 提取种子地址
|
||||||
} while (--$t > 0);
|
$regex = '/download.php\?(.*?)["|\']/i';
|
||||||
ff($siteName. '站点,辅种时触发第一次下载提示!');
|
if (preg_match($regex, $details_html, $matchs)) {
|
||||||
self::$noReseed[] = $siteName;
|
// 拼接种子地址
|
||||||
$reseedPass = true;
|
$download_page = str_replace($remove, '', self::$sites[$sid]['download_page']).str_replace('&', '&', $matchs[1]);
|
||||||
}
|
$_url = $protocol . self::$sites[$sid]['base_url']. '/' . $download_page;
|
||||||
if (strpos($url, '系统检测到过多的种子下载请求') != false) {
|
print "下载种子:".$_url.PHP_EOL;
|
||||||
echo "当前站点触发人机验证,已加入排除列表".PHP_EOL;
|
$url = download($_url, $cookie, $userAgent);
|
||||||
ff($siteName. '站点,辅种时触发人机验证!');
|
if (strpos($url, '第一次下载提示') != false) {
|
||||||
$configALL[$siteName]['limit'] = 1;
|
self::$noReseed[] = $siteName;
|
||||||
self::$noReseed[] = $siteName;
|
$reseedPass = true;
|
||||||
$reseedPass = true;
|
|
||||||
}
|
echo "当前站点触发第一次下载提示,已加入排除列表".PHP_EOL;
|
||||||
break;
|
echo "请进入种子详情页,下载种子,成功后更新cookie!".PHP_EOL;
|
||||||
default:
|
sleepIYUU(30, '请进入种子详情页,下载种子,成功后更新cookie!');
|
||||||
// 默认站点:推送给下载器种子URL链接
|
ff($siteName. '站点,辅种时触发第一次下载提示!');
|
||||||
break;
|
}
|
||||||
|
} else {
|
||||||
|
$reseedPass = true;
|
||||||
|
sleepIYUU(15, $siteName.'正则表达式未匹配到种子地址,可能站点已更新,请联系IYUU作者!');
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
// 默认站点:推送给下载器种子URL链接
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
// 检查switch内是否异常
|
||||||
|
if ($reseedPass) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
$downloadUrl = $_url;
|
||||||
|
} else {
|
||||||
|
$url = self::getTorrentUrl($siteName, $_url);
|
||||||
|
$downloadUrl = $url;
|
||||||
}
|
}
|
||||||
// 检查switch内是否异常
|
|
||||||
if ($reseedPass) {
|
// 把种子URL,推送给下载器
|
||||||
continue;
|
|
||||||
}
|
|
||||||
// 把拼接的种子URL,推送给下载器
|
|
||||||
echo '推送种子:' . $_url . PHP_EOL;
|
echo '推送种子:' . $_url . PHP_EOL;
|
||||||
$ret = false;
|
// 成功true | 失败false
|
||||||
// 成功返回:true
|
|
||||||
$ret = self::add($k, $url, $downloadDir);
|
$ret = self::add($k, $url, $downloadDir);
|
||||||
|
|
||||||
// 按站点规范日志内容
|
// 规范日志内容
|
||||||
switch ($siteName) {
|
$log = 'clients_'. $k . PHP_EOL . $downloadDir . PHP_EOL . $downloadUrl . PHP_EOL.PHP_EOL;
|
||||||
case 'hdchina':
|
|
||||||
$url = $details_url;
|
|
||||||
break;
|
|
||||||
case 'hdcity':
|
|
||||||
$url = $_url;
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
// 添加成功的种子,以infohash为文件名,写入缓存
|
|
||||||
$log = 'clients_'.$k.PHP_EOL.$downloadDir.PHP_EOL.$url.PHP_EOL.PHP_EOL;
|
|
||||||
if ($ret) {
|
if ($ret) {
|
||||||
// 成功的种子
|
// 成功
|
||||||
// 操作流控参数
|
// 操作流控参数
|
||||||
if (isset($configALL[$siteName]['limitRule']) && $configALL[$siteName]['limitRule']) {
|
if (isset($configALL[$siteName]['limitRule']) && $configALL[$siteName]['limitRule']) {
|
||||||
$limitRule = $configALL[$siteName]['limitRule'];
|
$limitRule = $configALL[$siteName]['limitRule'];
|
||||||
@@ -625,12 +509,13 @@ class AutoReseed
|
|||||||
$configALL[$siteName]['limitRule']['time'] = time();
|
$configALL[$siteName]['limitRule']['time'] = time();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// 添加成功,以infohash为文件名,写入缓存;所有客户端共用缓存,不可以重复辅种!如果需要重复辅种,请经常删除缓存!
|
||||||
wlog($log, $value['info_hash'], self::$cacheHash);
|
wlog($log, $value['info_hash'], self::$cacheHash);
|
||||||
wlog($log, 'reseedSuccess');
|
wlog($log, 'reseedSuccess');
|
||||||
// 成功累加
|
// 成功累加
|
||||||
self::$wechatMsg['reseedSuccess']++;
|
self::$wechatMsg['reseedSuccess']++;
|
||||||
} else {
|
} else {
|
||||||
// 失败的种子
|
// 失败
|
||||||
wlog($log, 'reseedError');
|
wlog($log, 'reseedError');
|
||||||
// 失败累加
|
// 失败累加
|
||||||
self::$wechatMsg['reseedError']++;
|
self::$wechatMsg['reseedError']++;
|
||||||
@@ -642,6 +527,44 @@ class AutoReseed
|
|||||||
}
|
}
|
||||||
// 按客户端循环辅种 结束
|
// 按客户端循环辅种 结束
|
||||||
}
|
}
|
||||||
|
/**
|
||||||
|
* 请求NexusPHP详情页
|
||||||
|
* @param $protocol string 协议
|
||||||
|
* @param $torrent array 种子
|
||||||
|
* @param $cookie string Cookie
|
||||||
|
* @param $userAgent string UA
|
||||||
|
* @return mixed|null
|
||||||
|
*/
|
||||||
|
private static function getNexusPHPdetailsPage($protocol, $torrent, $cookie, $userAgent)
|
||||||
|
{
|
||||||
|
$sid = $torrent['sid'];
|
||||||
|
$torrent_id = $torrent['torrent_id'];
|
||||||
|
|
||||||
|
// 拼接详情页URL
|
||||||
|
$details = str_replace('{}', $torrent_id, 'details.php?id={}&hit=1');
|
||||||
|
$details_url = $protocol . self::$sites[$sid]['base_url'] . '/' .$details;
|
||||||
|
print "种子详情页:".$details_url.PHP_EOL;
|
||||||
|
$details_html = download($details_url, $cookie, $userAgent);
|
||||||
|
// 删种检查
|
||||||
|
if (strpos($details_html, '没有该ID的种子') != false) {
|
||||||
|
echo '种子已被删除!'.PHP_EOL;
|
||||||
|
self::sendNotify('404');
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
return $details_html;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* 微信通知cookie失效,延时15秒提示
|
||||||
|
* @param $siteName
|
||||||
|
*/
|
||||||
|
private static function cookieExpired($siteName)
|
||||||
|
{
|
||||||
|
global $configALL;
|
||||||
|
$configALL[$siteName]['cookie'] = '';
|
||||||
|
|
||||||
|
ff($siteName. '站点,cookie已过期,请更新后重新辅种!');
|
||||||
|
sleepIYUU(15, 'cookie已过期,请更新后重新辅种!已加入排除列表');
|
||||||
|
}
|
||||||
/**
|
/**
|
||||||
* IYUUAutoReseed做种客户端转移
|
* IYUUAutoReseed做种客户端转移
|
||||||
*/
|
*/
|
||||||
@@ -762,8 +685,105 @@ class AutoReseed
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
/**
|
||||||
|
* 辅种前置检查
|
||||||
|
* @param $k int 客户端key
|
||||||
|
* @param $torrent array 可辅的种子
|
||||||
|
* @param $infohash_Dir array 当前客户端hash目录对应字典
|
||||||
|
* @param $downloadDir string 辅种目录
|
||||||
|
* @param $_url string 种子临时连接
|
||||||
|
* @return bool true 可辅种 | false 不可辅种
|
||||||
|
*/
|
||||||
|
private static function reseedCheck($k, $torrent, $infohash_Dir, $downloadDir, $_url)
|
||||||
|
{
|
||||||
|
global $configALL;
|
||||||
|
|
||||||
|
$sid = $torrent['sid'];
|
||||||
|
$torrent_id = $torrent['torrent_id'];
|
||||||
|
$info_hash = $torrent['info_hash'];
|
||||||
|
$siteName = self::$sites[$sid]['site'];
|
||||||
|
|
||||||
|
// passkey检测 [优先检查passkey,排除用户没有的站点]
|
||||||
|
if (empty($configALL[$siteName]) || empty($configALL[$siteName]['passkey'])) {
|
||||||
|
//echo '-------因当前' .$siteName. "站点未设置passkey,已跳过!!".PHP_EOL.PHP_EOL;
|
||||||
|
self::$wechatMsg['reseedSkip']++;
|
||||||
|
return false;
|
||||||
|
} else {
|
||||||
|
echo "clients_".$k."正在辅种... {$siteName}".PHP_EOL;
|
||||||
|
}
|
||||||
|
// cookie检测
|
||||||
|
if (in_array($siteName, self::$cookieCheck) && empty($configALL[$siteName]['cookie'])) {
|
||||||
|
echo '-------因当前' .$siteName. '站点未设置cookie,已跳过!!' .PHP_EOL.PHP_EOL;
|
||||||
|
self::$wechatMsg['reseedSkip']++;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
// 重复做种检测
|
||||||
|
if (isset($infohash_Dir[$info_hash])) {
|
||||||
|
echo '-------与客户端现有种子重复:'.$_url.PHP_EOL.PHP_EOL;
|
||||||
|
self::$wechatMsg['reseedRepeat']++;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
// 历史添加检测
|
||||||
|
if (is_file(self::$cacheHash . $info_hash.'.txt')) {
|
||||||
|
echo '-------当前种子上次辅种已成功添加,已跳过! '.$_url.PHP_EOL.PHP_EOL;
|
||||||
|
self::$wechatMsg['reseedPass']++;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
// 检查站点是否可以辅种
|
||||||
|
if (in_array($siteName, self::$noReseed)) {
|
||||||
|
echo '-------已跳过不辅种的站点:'.$_url.PHP_EOL.PHP_EOL;
|
||||||
|
self::$wechatMsg['reseedPass']++;
|
||||||
|
// 写入日志文件,供用户手动辅种
|
||||||
|
wlog('clients_'.$k.PHP_EOL.$downloadDir.PHP_EOL.$_url.PHP_EOL.PHP_EOL, $siteName);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
// 流控检测
|
||||||
|
if (isset($configALL[$siteName]['limit'])) {
|
||||||
|
echo "-------因当前" .$siteName. "站点触发流控,已跳过!! {$_url}".PHP_EOL.PHP_EOL;
|
||||||
|
// 流控日志
|
||||||
|
if ($siteName == 'hdchina') {
|
||||||
|
$details_page = str_replace('{}', $torrent_id, 'details.php?id={}&hit=1');
|
||||||
|
$_url = 'https://' .self::$sites[$sid]['base_url']. '/' .$details_page;
|
||||||
|
}
|
||||||
|
wlog('clients_'.$k.PHP_EOL.$downloadDir.PHP_EOL."-------因当前" .$siteName. "站点触发流控,已跳过!! {$_url}".PHP_EOL.PHP_EOL, 'reseedLimit');
|
||||||
|
self::$wechatMsg['reseedSkip']++;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
// 操作站点流控的配置
|
||||||
|
if (isset($configALL[$siteName]['limitRule']) && $configALL[$siteName]['limitRule']) {
|
||||||
|
$limitRule = $configALL[$siteName]['limitRule'];
|
||||||
|
if (isset($limitRule['count']) && isset($limitRule['sleep'])) {
|
||||||
|
if ($limitRule['count'] <= 0) {
|
||||||
|
echo '-------当前站点辅种数量已满足规则,保障账号安全已跳过:'.$_url.PHP_EOL.PHP_EOL;
|
||||||
|
self::$wechatMsg['reseedPass']++;
|
||||||
|
return false;
|
||||||
|
} else {
|
||||||
|
// 异步间隔流控算法:各站独立、执行时间最优
|
||||||
|
$lastTime = isset($limitRule['time']) ? $limitRule['time'] : 0; // 最近一次辅种成功的时间
|
||||||
|
if ($lastTime) {
|
||||||
|
$interval = time() - $lastTime; // 间隔时间
|
||||||
|
if ($interval < $limitRule['sleep']) {
|
||||||
|
$t = $limitRule['sleep'] - $interval + mt_rand(1, 5);
|
||||||
|
do {
|
||||||
|
echo microtime(true)." 为账号安全,辅种进程休眠 {$t} 秒后继续...".PHP_EOL;
|
||||||
|
sleep(1);
|
||||||
|
} while (--$t > 0);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
echo '-------当前站点流控规则错误,缺少count或sleep参数!请重新配置!'.$_url.PHP_EOL.PHP_EOL;
|
||||||
|
self::$wechatMsg['reseedPass']++;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 过滤已转移的种子hash
|
* 过滤已转移的种子hash
|
||||||
|
* @param array $infohash_Dir infohash与路径对应的字典
|
||||||
|
* @return bool true 过滤 | false 不过滤
|
||||||
*/
|
*/
|
||||||
private static function hashFilter(&$infohash_Dir = array())
|
private static function hashFilter(&$infohash_Dir = array())
|
||||||
{
|
{
|
||||||
@@ -777,6 +797,7 @@ class AutoReseed
|
|||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* 实际路径与相对路径之间互相转换
|
* 实际路径与相对路径之间互相转换
|
||||||
|
* @return string | null string转换成功
|
||||||
*/
|
*/
|
||||||
private static function pathReplace($path = '')
|
private static function pathReplace($path = '')
|
||||||
{
|
{
|
||||||
@@ -812,8 +833,10 @@ class AutoReseed
|
|||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 处理转移种子时所设置的过滤器、选择器
|
* 处理转移种子时所设置的过滤器、选择器
|
||||||
|
* @param string $path
|
||||||
* @return bool true 过滤 | false 不过滤
|
* @return bool true 过滤 | false 不过滤
|
||||||
*/
|
*/
|
||||||
private static function pathFilter(&$path = '')
|
private static function pathFilter(&$path = '')
|
||||||
@@ -849,7 +872,7 @@ class AutoReseed
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
//同时设置过滤器、选择器
|
//同时设置过滤器、选择器
|
||||||
if (\is_array($path_selector) && \is_array($path_filter)) {
|
if (\is_array($path_filter) && \is_array($path_selector)) {
|
||||||
//先过滤器
|
//先过滤器
|
||||||
foreach ($path_filter as $pathName) {
|
foreach ($path_filter as $pathName) {
|
||||||
if (strpos($path, $pathName)===0) {
|
if (strpos($path, $pathName)===0) {
|
||||||
@@ -874,15 +897,15 @@ class AutoReseed
|
|||||||
* 获取站点种子的URL
|
* 获取站点种子的URL
|
||||||
* @param string $site
|
* @param string $site
|
||||||
* @param string $url
|
* @param string $url
|
||||||
* @return string
|
* @return string 带host的完整种子下载连接
|
||||||
*/
|
*/
|
||||||
private static function getTorrentUrl($site = '', $url = '')
|
private static function getTorrentUrl($site = '', $url = '')
|
||||||
{
|
{
|
||||||
global $configALL;
|
global $configALL;
|
||||||
// 兼容旧配置
|
// 兼容旧配置,进行补全
|
||||||
if (isset($configALL[$site]['passkey']) && $configALL[$site]['passkey']) {
|
if (isset($configALL[$site]['passkey']) && $configALL[$site]['passkey']) {
|
||||||
if (empty($configALL[$site]['url_replace'])) {
|
if (empty($configALL[$site]['url_replace'])) {
|
||||||
$configALL[$site]['url_replace'] = array('{passkey}' => $configALL[$site]['passkey']);
|
$configALL[$site]['url_replace'] = array('{passkey}' => trim($configALL[$site]['passkey']));
|
||||||
}
|
}
|
||||||
if (empty($configALL[$site]['url_join'])) {
|
if (empty($configALL[$site]['url_join'])) {
|
||||||
$configALL[$site]['url_join'] = array();
|
$configALL[$site]['url_join'] = array();
|
||||||
@@ -906,6 +929,7 @@ class AutoReseed
|
|||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* 微信模板消息拼接方法
|
* 微信模板消息拼接方法
|
||||||
|
* @return string 发送情况,json
|
||||||
*/
|
*/
|
||||||
private static function wechatMessage()
|
private static function wechatMessage()
|
||||||
{
|
{
|
||||||
@@ -940,8 +964,11 @@ class AutoReseed
|
|||||||
$desp .= $br.'*此消息将在3天后过期*。';
|
$desp .= $br.'*此消息将在3天后过期*。';
|
||||||
return ff($text, $desp);
|
return ff($text, $desp);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 错误的种子通知服务器
|
* 错误的种子通知服务器
|
||||||
|
* @param string $error
|
||||||
|
* @return bool
|
||||||
*/
|
*/
|
||||||
private static function sendNotify($error = '')
|
private static function sendNotify($error = '')
|
||||||
{
|
{
|
||||||
@@ -961,8 +988,12 @@ class AutoReseed
|
|||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 设置通知主体
|
* 设置通知主体
|
||||||
|
* @param string $siteName
|
||||||
|
* @param int $sid
|
||||||
|
* @param int $torrent_id
|
||||||
*/
|
*/
|
||||||
private static function setNotify($siteName = '', $sid = 0, $torrent_id = 0)
|
private static function setNotify($siteName = '', $sid = 0, $torrent_id = 0)
|
||||||
{
|
{
|
||||||
@@ -973,8 +1004,12 @@ class AutoReseed
|
|||||||
'torrent_id'=> $torrent_id,
|
'torrent_id'=> $torrent_id,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 备份功能
|
* 备份功能
|
||||||
|
* @param string $key
|
||||||
|
* @param array $array
|
||||||
|
* @return bool|int
|
||||||
*/
|
*/
|
||||||
private static function backup($key = '', $array = [])
|
private static function backup($key = '', $array = [])
|
||||||
{
|
{
|
||||||
|
@@ -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;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@@ -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);
|
||||||
|
@@ -9,7 +9,7 @@ use Curl\Curl;
|
|||||||
class Oauth
|
class Oauth
|
||||||
{
|
{
|
||||||
// 合作的站点
|
// 合作的站点
|
||||||
public static $sites = ['ourbits','hddolby','hdhome','pthome','moecat'];
|
public static $sites = ['ourbits','hddolby','hdhome','pthome','chdbits'];
|
||||||
// 爱语飞飞token
|
// 爱语飞飞token
|
||||||
public static $token = '';
|
public static $token = '';
|
||||||
// 合作站点用户id
|
// 合作站点用户id
|
||||||
|
@@ -456,3 +456,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);
|
||||||
|
}
|
||||||
|
@@ -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
|
||||||
|
|
||||||
# 脚本当前目录
|
# 脚本当前目录
|
||||||
|
@@ -7,6 +7,7 @@
|
|||||||
* 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/
|
||||||
@@ -32,9 +33,9 @@ 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' => 'null',
|
'username' => '', // 没有用户名请填写null
|
||||||
'password' => 'null',
|
'password' => '', // 没有密码 请填写null
|
||||||
'BT_backup' => '/var/lib/transmission/torrents', // 移动做种:如果脚本与当前客户端不在一台机器,必须配置
|
'BT_backup' => '/torrents', // 移动做种:如果脚本与当前客户端不在一台机器,必须配置
|
||||||
'move' => 0, // 0不移动,1移动并辅种,2移动且只在当前客户端辅种
|
'move' => 0, // 0不移动,1移动并辅种,2移动且只在当前客户端辅种
|
||||||
),
|
),
|
||||||
# 结束
|
# 结束
|
||||||
@@ -44,8 +45,8 @@ return array(
|
|||||||
'host' => 'http://127.0.0.1:8083',
|
'host' => 'http://127.0.0.1:8083',
|
||||||
'username' => 'admin',
|
'username' => 'admin',
|
||||||
'password' => '',
|
'password' => '',
|
||||||
'root_folder'=> 1, // 0不创建根目录,1创建根目录
|
'root_folder'=> 1, // 0不创建根目录,1创建根目录(下载器默认1)
|
||||||
'BT_backup' => 'C:\Users\ASUS\AppData\Local\qBittorrent\BT_backup', // 移动做种:必须配置,Linux搜索方法:find / -name BT_backup
|
'BT_backup' => '/BT_backup', // 移动做种:必须配置,Linux搜索方法:find / -name BT_backup
|
||||||
'move' => 0, // 0不移动,1移动并辅种,2移动且只在当前客户端辅种
|
'move' => 0, // 0不移动,1移动并辅种,2移动且只在当前客户端辅种
|
||||||
),
|
),
|
||||||
# 结束
|
# 结束
|
||||||
@@ -60,14 +61,14 @@ return array(
|
|||||||
),
|
),
|
||||||
'path_filter'=> array(), //转移过滤器:不转移此路径内文件
|
'path_filter'=> array(), //转移过滤器:不转移此路径内文件
|
||||||
'path_selector' => array(), //转移选择器:只转移此路径内文件(为空时,全转移) 【优先级:过滤器 > 选择器】
|
'path_selector' => array(), //转移选择器:只转移此路径内文件(为空时,全转移) 【优先级:过滤器 > 选择器】
|
||||||
'paused' => 0, //转移成功,自动开始任务:0开始,1暂停
|
'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(
|
||||||
@@ -98,7 +99,7 @@ return array(
|
|||||||
* 以下为各站点的独立配置(互不影响、互不冲突)
|
* 以下为各站点的独立配置(互不影响、互不冲突)
|
||||||
* 自动辅种:需要配置各站的passkey(没有配置passkey的站点会自动跳过)
|
* 自动辅种:需要配置各站的passkey(没有配置passkey的站点会自动跳过)
|
||||||
*/
|
*/
|
||||||
// ourbits
|
// 【合作站点用户鉴权】ourbits
|
||||||
'ourbits' => array(
|
'ourbits' => array(
|
||||||
// 如果需要用下载免费种脚本,须配置(只是自动辅种,可以不配置此项)
|
// 如果需要用下载免费种脚本,须配置(只是自动辅种,可以不配置此项)
|
||||||
'cookie' => '',
|
'cookie' => '',
|
||||||
@@ -124,7 +125,7 @@ return array(
|
|||||||
),
|
),
|
||||||
|
|
||||||
),
|
),
|
||||||
// hddolby
|
// 【合作站点用户鉴权】hddolby
|
||||||
'hddolby' => array(
|
'hddolby' => array(
|
||||||
// 如果需要用下载免费种脚本,须配置(只是自动辅种,可以不配置此项)
|
// 如果需要用下载免费种脚本,须配置(只是自动辅种,可以不配置此项)
|
||||||
'cookie' => '',
|
'cookie' => '',
|
||||||
@@ -138,7 +139,7 @@ return array(
|
|||||||
'sleep' => 5, // 最少休眠5秒
|
'sleep' => 5, // 最少休眠5秒
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
// hdhome
|
// 【合作站点用户鉴权】hdhome
|
||||||
'hdhome' => array(
|
'hdhome' => array(
|
||||||
// 如果需要用下载免费种脚本,须配置(只是自动辅种,可以不配置此项)
|
// 如果需要用下载免费种脚本,须配置(只是自动辅种,可以不配置此项)
|
||||||
'cookie' => '',
|
'cookie' => '',
|
||||||
@@ -152,7 +153,7 @@ return array(
|
|||||||
'sleep' => 5, // 最少休眠5秒
|
'sleep' => 5, // 最少休眠5秒
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
// PTHome
|
// 【合作站点用户鉴权】PTHome
|
||||||
'pthome' => array(
|
'pthome' => array(
|
||||||
// 如果需要用下载免费种脚本,须配置(只是自动辅种,可以不配置此项)
|
// 如果需要用下载免费种脚本,须配置(只是自动辅种,可以不配置此项)
|
||||||
'cookie' => '',
|
'cookie' => '',
|
||||||
@@ -166,6 +167,16 @@ return array(
|
|||||||
'sleep' => 5, // 最少休眠5秒
|
'sleep' => 5, // 最少休眠5秒
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
// 【合作站点用户鉴权】chdbits
|
||||||
|
'chdbits' => array(
|
||||||
|
// 如果需要用下载免费种脚本,须配置(只是自动辅种,可以不配置此项)
|
||||||
|
'cookie' => '',
|
||||||
|
// 如果需要自动辅种,必须配置
|
||||||
|
'passkey' => '',
|
||||||
|
'id' => 0, // 用户ID(不是用户名)
|
||||||
|
'url_replace' => array(),
|
||||||
|
'url_join' => array(),
|
||||||
|
),
|
||||||
// MoeCat
|
// MoeCat
|
||||||
'moecat' => array(
|
'moecat' => array(
|
||||||
// 如果需要用下载免费种脚本,须配置(只是自动辅种,可以不配置此项)
|
// 如果需要用下载免费种脚本,须配置(只是自动辅种,可以不配置此项)
|
||||||
@@ -194,23 +205,6 @@ return array(
|
|||||||
//'ipv6=1', // 种子Tracker的IP地址选择 可选:ipv4,ipv6
|
//'ipv6=1', // 种子Tracker的IP地址选择 可选:ipv4,ipv6
|
||||||
'https=1',
|
'https=1',
|
||||||
),
|
),
|
||||||
'clients' => array(
|
|
||||||
array(
|
|
||||||
'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
|
||||||
'keepfrds' => array(
|
'keepfrds' => array(
|
||||||
@@ -263,8 +257,8 @@ return array(
|
|||||||
// 如果需要自动辅种,必须配置
|
// 如果需要自动辅种,必须配置
|
||||||
'passkey' => '',
|
'passkey' => '',
|
||||||
'limitRule' => array(
|
'limitRule' => array(
|
||||||
'count' => 20, // 每次辅种50个
|
'count' => 20, // 每次辅种20个
|
||||||
'sleep' => 20, // 最少休眠15秒
|
'sleep' => 20, // 最少休眠20秒
|
||||||
),
|
),
|
||||||
'url_replace' => array(),
|
'url_replace' => array(),
|
||||||
'url_join' => array(),
|
'url_join' => array(),
|
||||||
@@ -383,15 +377,6 @@ return array(
|
|||||||
'url_replace' => array(),
|
'url_replace' => array(),
|
||||||
'url_join' => array(),
|
'url_join' => array(),
|
||||||
),
|
),
|
||||||
// chdbits
|
|
||||||
'chdbits' => array(
|
|
||||||
// 如果需要用下载免费种脚本,须配置(只是自动辅种,可以不配置此项)
|
|
||||||
'cookie' => '',
|
|
||||||
// 如果需要自动辅种,必须配置
|
|
||||||
'passkey' => '',
|
|
||||||
'url_replace' => array(),
|
|
||||||
'url_join' => array(),
|
|
||||||
),
|
|
||||||
// leaguehd
|
// leaguehd
|
||||||
'leaguehd' => array(
|
'leaguehd' => array(
|
||||||
// 如果需要用下载免费种脚本,须配置(只是自动辅种,可以不配置此项)
|
// 如果需要用下载免费种脚本,须配置(只是自动辅种,可以不配置此项)
|
||||||
@@ -655,5 +640,21 @@ return array(
|
|||||||
'url_replace' => array(),
|
'url_replace' => array(),
|
||||||
'url_join' => array(),
|
'url_join' => array(),
|
||||||
),
|
),
|
||||||
|
// dragonhd
|
||||||
|
'dragonhd' => array(
|
||||||
|
// 如果需要用下载免费种脚本,须配置(只是自动辅种,可以不配置此项)
|
||||||
|
'cookie' => '',
|
||||||
|
// 如果需要自动辅种,必须配置
|
||||||
|
'passkey' => '',
|
||||||
|
),
|
||||||
|
// hitpt 百川
|
||||||
|
'hitpt' => array(
|
||||||
|
// 如果需要用下载免费种脚本,须配置(只是自动辅种,可以不配置此项)
|
||||||
|
'cookie' => '',
|
||||||
|
// 如果需要自动辅种,必须配置
|
||||||
|
'passkey' => '',
|
||||||
|
'url_replace' => array(),
|
||||||
|
'url_join' => array(),
|
||||||
|
),
|
||||||
// 配置结束,后面的一行不能删除,必须保留!!!
|
// 配置结束,后面的一行不能删除,必须保留!!!
|
||||||
);
|
);
|
||||||
|
@@ -1,6 +1,9 @@
|
|||||||
FROM swoft/alphp:base
|
|
||||||
#FROM swoft/alphp:cli
|
|
||||||
#FROM alpine:latest
|
#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"
|
LABEL maintainer="david <367013672@qq.com>" version="1.0"
|
||||||
|
|
||||||
##
|
##
|
||||||
@@ -15,7 +18,8 @@ ARG app_env=prod
|
|||||||
# ARG add_user=www-data
|
# ARG add_user=www-data
|
||||||
|
|
||||||
ENV APP_ENV=${app_env:-"prod"} \
|
ENV APP_ENV=${app_env:-"prod"} \
|
||||||
TIMEZONE=${timezone:-"Asia/Shanghai"}
|
TIMEZONE=${timezone:-"Asia/Shanghai"} \
|
||||||
|
cron="0 10 * * 0"
|
||||||
|
|
||||||
##
|
##
|
||||||
# ---------- building ----------
|
# ---------- building ----------
|
||||||
@@ -59,6 +63,7 @@ RUN set -ex \
|
|||||||
# php7-pdo_mysql \
|
# php7-pdo_mysql \
|
||||||
# php7-pdo_sqlite \
|
# php7-pdo_sqlite \
|
||||||
# php7-phar \
|
# php7-phar \
|
||||||
|
# php7-pcntl \
|
||||||
# php7-posix \
|
# php7-posix \
|
||||||
# php7-redis \
|
# php7-redis \
|
||||||
php7-simplexml \
|
php7-simplexml \
|
||||||
@@ -90,6 +95,7 @@ RUN set -ex \
|
|||||||
# - config timezone
|
# - config timezone
|
||||||
&& ln -sf /usr/share/zoneinfo/${TIMEZONE} /etc/localtime \
|
&& ln -sf /usr/share/zoneinfo/${TIMEZONE} /etc/localtime \
|
||||||
&& echo "${TIMEZONE}" > /etc/timezone \
|
&& echo "${TIMEZONE}" > /etc/timezone \
|
||||||
|
&& echo '2 */5 * * * cd /var/www && git fetch --all && git reset --hard origin/master' >> /etc/crontabs/root \
|
||||||
# ---------- some config work ----------
|
# ---------- some config work ----------
|
||||||
# - ensure 'www-data' user exists(82 is the standard uid/gid for "www-data" in Alpine)
|
# - ensure 'www-data' user exists(82 is the standard uid/gid for "www-data" in Alpine)
|
||||||
# && addgroup -g 82 -S ${add_user} \
|
# && addgroup -g 82 -S ${add_user} \
|
||||||
@@ -102,3 +108,5 @@ RUN set -ex \
|
|||||||
EXPOSE 9000
|
EXPOSE 9000
|
||||||
# VOLUME ["/var/www", "/data"]
|
# VOLUME ["/var/www", "/data"]
|
||||||
WORKDIR /var/www
|
WORKDIR /var/www
|
||||||
|
|
||||||
|
CMD ["sh", "-c", "/usr/bin/php /var/www/iyuu.php ; /usr/sbin/crond ; (crontab -l ;echo \"$cron /usr/bin/php /var/www/iyuu.php &> /dev/null\") | crontab - ; tail -f /dev/null"]
|
@@ -1,20 +1,26 @@
|
|||||||
FROM arm64v8/alpine
|
# FROM arm64v8/alpine:latest
|
||||||
#FROM arm64v8/alpine:latest
|
FROM arm64v8/alpine:3.12
|
||||||
#FROM arm64v8/alpine:3.12
|
|
||||||
ENV TZ Asia/Shanghai
|
ENV TZ Asia/Shanghai
|
||||||
|
|
||||||
ENV cron="0 9 * * 0"
|
ENV cron="0 9 * * 0"
|
||||||
|
|
||||||
RUN set -ex \
|
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.ustc.edu.cn/' /etc/apk/repositories \
|
||||||
# && sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.cn/' /etc/apk/repositories \
|
# && sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.cn/' /etc/apk/repositories \
|
||||||
&& apk --update add --no-cache \
|
&& apk update \
|
||||||
|
&& apk add --no-cache \
|
||||||
tzdata \
|
tzdata \
|
||||||
php7 php7-curl php7-json php7-mbstring php7-dom php7-simplexml php7-xml php7-zip \
|
php7 php7-curl php7-json php7-mbstring php7-dom php7-simplexml php7-xml php7-zip \
|
||||||
git \
|
git \
|
||||||
&& git clone https://gitee.com/ledc/IYUUAutoReseed.git /IYUU \
|
&& git clone https://gitee.com/ledc/IYUUAutoReseed.git /IYUU \
|
||||||
&& cp /IYUU/config/config.sample.php /IYUU/config/config.php \
|
&& cp /IYUU/config/config.sample.php /IYUU/config/config.php \
|
||||||
&& ln -sf /IYUU/config/config.php /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 \
|
&& echo "${TZ}" > /etc/timezone \
|
||||||
&& ln -sf /usr/share/zoneinfo/${TZ} /etc/localtime
|
&& ln -sf /usr/share/zoneinfo/${TZ} /etc/localtime \
|
||||||
|
&& echo '2 */6 * * * cd /IYUU && git fetch --all && git reset --hard origin/master' >> /etc/crontabs/root
|
||||||
|
|
||||||
WORKDIR /IYUU
|
WORKDIR /IYUU
|
||||||
|
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
docker build -t iyuu:latest .
|
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: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:arm64v8
|
||||||
docker exec -it IYUUAutoReseed php iyuu.php
|
docker exec -it IYUUAutoReseed php iyuu.php
|
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
docker build -f Dockerfile -t iyuu:latest .
|
docker build -f Dockerfile -t iyuu:arm64v8 .
|
||||||
docker run -it -v /root/config.php:/config.php --network bridge --name IYUUAutoReseed --restart always -d iyuu:latest
|
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
|
docker exec -it IYUUAutoReseed php iyuu.php
|
@@ -38,12 +38,12 @@ iyuucn/iyuuautoreseed:latest
|
|||||||
|
|
||||||
**命令解释**
|
**命令解释**
|
||||||
|
|
||||||
| 参数 | 解释 |
|
| 参数 | 解释 |
|
||||||
| --------- | ------------------------------------------- |
|
| ----------- | ------------------------------------------------------------ |
|
||||||
| --name | 容器名字 |
|
| `--name` | 容器名字 |
|
||||||
| -e | 定时任务执行时间 |
|
| `-e` | 环境变量,定时任务执行时间 |
|
||||||
| -v | 本地目录或文件:容器目录文件,资源挂载到容器 |
|
| `-v` | 本地目录或文件:容器目录文件,资源挂载到容器。<br />请把你的配置文件放在/root/config.php,会把你的配置映射进容器内。 |
|
||||||
| --restart | 启动模式 |
|
| `--restart` | 启动模式 |
|
||||||
|
|
||||||
------
|
------
|
||||||
|
|
||||||
|
23
readme.md
23
readme.md
@@ -12,7 +12,7 @@
|
|||||||
|
|
||||||

|

|
||||||
|
|
||||||
## 获取脚本,三种方式皆可
|
## 获取脚本,四种方式皆可
|
||||||
|
|
||||||
1. 通过git命令安装
|
1. 通过git命令安装
|
||||||
|
|
||||||
@@ -26,6 +26,10 @@
|
|||||||
|
|
||||||
`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自动辅种工具,功能分为两大块:自动辅种、自动转移。
|
IYUU自动辅种工具,功能分为两大块:自动辅种、自动转移。
|
||||||
@@ -51,7 +55,7 @@ IYUU自动辅种工具(英文名:IYUUAutoReseed),是一款PHP语言编
|
|||||||
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、伊甸园hdbd、海胆haidan、HDfans。
|
学校、杜比、家园、天空、朋友、馒头、萌猫、我堡、猫站、铂金家、烧包、北洋、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!
|
||||||
@@ -77,12 +81,15 @@ IYUU自动辅种工具(英文名:IYUUAutoReseed),是一款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
|
| [IYUU GUI](https://github.com/Rhilip/IYUU-GUI) | 这是一个基于IYUU提供的API,产生一个可视化操作项目。目的是为了降低直接上手PHP版IYUUAutoReseed的困难。 |
|
||||||
- AutoPT,地址:https://github.com/lysssssss/AutoPT;简介:此程序用于自动下载PT免费种子,并自动辅种和一体化管理。开发目的为了释放双手,专注观影!
|
| [IYUU-Fly](https://github.com/PlexPt/iyuu-fly) | 带GUI的iyuu自动辅种程序。 |
|
||||||
- flexget_qbittorrent_mod,地址:https://github.com/IvonWei/flexget_qbittorrent_mod;简介:Flexget qBittorrent插件,实现全自动化辅种、删种、免费种筛选、签到等。
|
| [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插件,实现全自动化辅种,删除种,免费种筛选,签到等。|
|
||||||
|
|
||||||
|
|
||||||
## 需求提交/错误反馈
|
## 需求提交/错误反馈
|
||||||
|
@@ -1,5 +1,11 @@
|
|||||||
# 公告栏
|
# 公告栏
|
||||||
|
|
||||||
|
### 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
|
### 2020年7月13日08:00:00
|
||||||
|
|
||||||
【更新提醒】v1.9.1
|
【更新提醒】v1.9.1
|
||||||
|
@@ -4,6 +4,15 @@
|
|||||||
|
|
||||||
------
|
------
|
||||||
|
|
||||||
|
### 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日
|
### 2020年7月3日
|
||||||
|
|
||||||
1. 优化windows的辅种批处理,采用环境变量调用
|
1. 优化windows的辅种批处理,采用环境变量调用
|
||||||
|
Reference in New Issue
Block a user