mirror of
https://gitee.com/ledc/IYUUAutoReseed
synced 2025-08-24 06:54:51 +00:00
Compare commits
72 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 | ||
|
a84b193d14 | ||
|
e2dddfdead | ||
|
f78e9c737c | ||
|
8813afbd73 | ||
|
8b1bd9cdb5 | ||
|
5418c02227 | ||
|
a9d9fb637d | ||
|
4247457cb6 | ||
|
0047450161 | ||
|
15f9905004 | ||
|
63b2bfc2bc | ||
|
c5c2feb9d3 | ||
|
6c06d9fb6a | ||
|
6578397ee3 | ||
|
29c2e43405 | ||
|
18cdd7abed | ||
|
4fbf795811 | ||
|
88ebc12ce5 | ||
|
08b4b58083 | ||
|
ca02231431 | ||
|
7d638eba40 | ||
|
c35c23583c | ||
|
b2b9000a86 | ||
|
b80a5b89cc | ||
|
c2e5b4d00b | ||
|
207320ede7 | ||
|
6e1653fc1e | ||
|
32ec80d552 | ||
|
2b989f9e0e | ||
|
ff16781da9 | ||
|
6a01b492ce | ||
|
de41bc0131 | ||
|
6b83e9081b | ||
|
87f06ec5c4 | ||
|
8a051d4d1f | ||
|
0e32e625a4 | ||
|
a09dacbd20 |
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
|
||||
git fetch --all
|
||||
git reset --hard origin/master
|
||||
#git pull
|
||||
php %cd%\iyuu.php
|
||||
php %~dp0iyuu.php
|
||||
pause
|
@@ -1,4 +1,4 @@
|
||||
@echo off
|
||||
chcp 65001
|
||||
php %cd%\iyuu.php
|
||||
php %~dp0iyuu.php
|
||||
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"]
|
@@ -1,17 +1,19 @@
|
||||
<?php
|
||||
namespace IYUU;
|
||||
|
||||
use Curl\Curl;
|
||||
use IYUU\Client\AbstractClient;
|
||||
use IYUU\Library\IFile;
|
||||
use IYUU\Library\Oauth;
|
||||
use IYUU\Library\Table;
|
||||
|
||||
/**
|
||||
* IYUUAutoReseed自动辅种类
|
||||
*/
|
||||
class AutoReseed
|
||||
{
|
||||
// 版本号
|
||||
const VER = '1.8.6';
|
||||
const VER = '1.10.8';
|
||||
// RPC连接
|
||||
private static $links = [];
|
||||
// 客户端配置
|
||||
@@ -20,10 +22,8 @@ class AutoReseed
|
||||
private static $sites = [];
|
||||
// 不辅种的站点 'pt','hdchina'
|
||||
private static $noReseed = [];
|
||||
// 不转移的站点 'hdarea','hdbd'
|
||||
private static $noMove = [];
|
||||
// cookie检查
|
||||
private static $cookieCheck = ['hdchina','hdcity'];
|
||||
private static $cookieCheck = ['hdchina','hdcity','hdsky'];
|
||||
// 缓存路径
|
||||
public static $cacheDir = TORRENT_PATH.'cache'.DS;
|
||||
public static $cacheHash = TORRENT_PATH.'cachehash'.DS;
|
||||
@@ -34,9 +34,8 @@ class AutoReseed
|
||||
'login' => '/user/login',
|
||||
'sites' => '/api/sites',
|
||||
'infohash'=> '/api/infohash',
|
||||
'notify' => '/api/notify',
|
||||
'alike' => '/api/alike',
|
||||
'hash' => '/api/hash',
|
||||
'notify' => '/api/notify',
|
||||
);
|
||||
// curl
|
||||
private static $curl = null;
|
||||
@@ -54,6 +53,8 @@ class AutoReseed
|
||||
'reseedRepeat' => 0, // 重复:客户端已做种
|
||||
'reseedSkip' => 0, // 跳过:因未设置passkey,而跳过
|
||||
'reseedPass' => 0, // 忽略:因上次成功添加、存在缓存,而跳过
|
||||
'MoveSuccess' => 0, // 移动成功
|
||||
'MoveError' => 0, // 移动失败
|
||||
);
|
||||
// 错误通知消息体
|
||||
private static $errNotify = array(
|
||||
@@ -67,14 +68,15 @@ class AutoReseed
|
||||
public static function init()
|
||||
{
|
||||
global $configALL;
|
||||
echo "正在初始化运行参数,版本号:".self::VER.PHP_EOL;
|
||||
sleep(mt_rand(1, 3));
|
||||
echo '正在初始化运行参数,版本号:'.self::VER.PHP_EOL;
|
||||
echo '当前时间:'.date('Y-m-d H:i:s').PHP_EOL;
|
||||
//sleep(mt_rand(1, 5));
|
||||
self::backup('config', $configALL);
|
||||
self::$curl = new Curl();
|
||||
self::$curl->setOpt(CURLOPT_SSL_VERIFYPEER, false);
|
||||
self::$curl->setOpt(CURLOPT_SSL_VERIFYHOST, 2);
|
||||
|
||||
// 合作站点自动鉴权绑定
|
||||
// 合作站点鉴权绑定
|
||||
Oauth::login(self::$apiUrl . self::$endpoints['login']);
|
||||
|
||||
// 显示支持站点列表
|
||||
@@ -103,31 +105,26 @@ class AutoReseed
|
||||
'【IYUU自动辅种交流】QQ群:859882209、931954050'.PHP_EOL,
|
||||
'正在连接IYUUAutoReseed服务器,查询支持列表……'.PHP_EOL
|
||||
];
|
||||
foreach ($list as $value) {
|
||||
echo $value.PHP_EOL;
|
||||
foreach ($list as $v) {
|
||||
echo $v.PHP_EOL;
|
||||
}
|
||||
$res = self::$curl->get(self::$apiUrl.self::$endpoints['sites'].'?sign='.Oauth::getSign());
|
||||
$res = self::$curl->get(self::$apiUrl.self::$endpoints['sites'].'?sign='.Oauth::getSign().'&version='.self::VER);
|
||||
$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) {
|
||||
self::$sites = array_column($sites, null, 'id');
|
||||
$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']) {
|
||||
if (empty($sites)) {
|
||||
if (!empty($rs['msg'])) {
|
||||
die($rs['msg'].PHP_EOL);
|
||||
}
|
||||
if (isset($rs['errmsg']) && $rs['errmsg']) {
|
||||
die($rs['errmsg'].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 = [];
|
||||
$i = $j = $k = 0; // i列、j序号、k行
|
||||
foreach ($sites as $v) {
|
||||
@@ -166,9 +163,9 @@ class AutoReseed
|
||||
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;
|
||||
$result = $client->status();
|
||||
print $v['type'].':'.$v['host']." Rpc连接 [{$result}] \n";
|
||||
print $v['type'].':'.$v['host']." Rpc连接 [{$result}]".PHP_EOL;
|
||||
// 检查转移做种 (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']);
|
||||
}
|
||||
} catch (\Exception $e) {
|
||||
@@ -196,19 +193,14 @@ class AutoReseed
|
||||
case 'transmission':
|
||||
$extra_options['paused'] = isset($extra_options['paused']) ? $extra_options['paused'] : true;
|
||||
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 {
|
||||
$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') {
|
||||
$id = $name = '';
|
||||
if (isset($result['arguments']['torrent-duplicate'])) {
|
||||
$id = $result['arguments']['torrent-duplicate']['id'];
|
||||
$name = $result['arguments']['torrent-duplicate']['name'];
|
||||
} elseif (isset($result['arguments']['torrent-added'])) {
|
||||
$id = $result['arguments']['torrent-added']['id'];
|
||||
$name = $result['arguments']['torrent-added']['name'];
|
||||
}
|
||||
$_key = isset($result['arguments']['torrent-added']) ? 'torrent-added' : 'torrent-duplicate';
|
||||
$id = $result['arguments'][$_key]['id'];
|
||||
$name = $result['arguments'][$_key]['name'];
|
||||
print "名字:" .$name . PHP_EOL;
|
||||
print "********RPC添加下载任务成功 [" .$result['result']. "] (id=" .$id. ")".PHP_EOL.PHP_EOL;
|
||||
return true;
|
||||
@@ -216,8 +208,6 @@ class AutoReseed
|
||||
$errmsg = isset($result['result']) ? $result['result'] : '未知错误,请稍后重试!';
|
||||
if (strpos($errmsg, 'http error 404: Not Found') !== false) {
|
||||
self::sendNotify('404');
|
||||
} elseif (strpos($errmsg, 'http error 403: Forbidden') !== false) {
|
||||
self::sendNotify('403');
|
||||
}
|
||||
print "-----RPC添加种子任务,失败 [{$errmsg}]" . PHP_EOL.PHP_EOL;
|
||||
}
|
||||
@@ -234,12 +224,11 @@ class AutoReseed
|
||||
// 是否创建根目录
|
||||
$extra_options['root_folder'] = self::$links[$rpcKey]['root_folder'] ? 'true' : 'false';
|
||||
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 {
|
||||
$extra_options['name'] = 'torrents';
|
||||
$rand = mt_rand(10, 42949672);
|
||||
$extra_options['filename'] = intval($rand).'.torrent';
|
||||
$result = self::$links[$rpcKey]['rpc']->add_metainfo($torrent, $save_path, $extra_options); // 种子元数据添加下载任务
|
||||
$extra_options['filename'] = time().'.torrent';
|
||||
$result = self::$links[$rpcKey]['rpc']->add_metainfo($torrent, $save_path, $extra_options); // 元数据添加
|
||||
}
|
||||
if ($result === 'Ok.') {
|
||||
print "********RPC添加下载任务成功 [{$result}]".PHP_EOL.PHP_EOL;
|
||||
@@ -267,6 +256,7 @@ class AutoReseed
|
||||
}
|
||||
self::reseed();
|
||||
self::wechatMessage();
|
||||
exit(self::$ExitCode);
|
||||
}
|
||||
/**
|
||||
* IYUUAutoReseed辅种
|
||||
@@ -276,8 +266,7 @@ class AutoReseed
|
||||
global $configALL;
|
||||
// 支持站点数量
|
||||
self::$wechatMsg['sitesCount'] = count(self::$sites);
|
||||
$sites = self::$sites;
|
||||
// 按客户端循环辅种 开始
|
||||
// 遍历客户端 开始
|
||||
foreach (self::$links as $k => $v) {
|
||||
if (empty($v)) {
|
||||
echo "clients_".$k." 用户名或密码未配置,已跳过".PHP_EOL.PHP_EOL;
|
||||
@@ -291,11 +280,10 @@ class AutoReseed
|
||||
echo "正在从下载器 clients_".$k." 获取种子哈希……".PHP_EOL;
|
||||
$hashArray = self::$links[$k]['rpc']->getList();
|
||||
if (empty($hashArray)) {
|
||||
// 失败
|
||||
continue;
|
||||
}
|
||||
self::backup('clients_'.$k, $hashArray);
|
||||
$infohash_Dir = $hashArray['hashString'];
|
||||
$infohash_Dir = $hashArray['hashString']; // 哈希目录对应字典
|
||||
unset($hashArray['hashString']);
|
||||
// 签名
|
||||
$hashArray['sign'] = Oauth::getSign();
|
||||
@@ -311,19 +299,19 @@ class AutoReseed
|
||||
self::$curl->setOpt(CURLOPT_CONNECTTIMEOUT, $connecttimeout);
|
||||
self::$curl->setOpt(CURLOPT_TIMEOUT, $timeout);
|
||||
}
|
||||
// P($infohash_Dir); // 调试:打印目录对应表
|
||||
// p($infohash_Dir); // 调试:打印目录对应表
|
||||
echo "正在向服务器提交 clients_".$k." 种子哈希……".PHP_EOL;
|
||||
$res = self::$curl->post(self::$apiUrl . self::$endpoints['infohash'], $hashArray);
|
||||
$res = json_decode($res->response, true);
|
||||
// 写返回日志
|
||||
wlog($res, 'reseed'.$k);
|
||||
$reseed = isset($res['data']) && $res['data'] ? $res['data'] : array();
|
||||
if (empty($reseed)) {
|
||||
$data = isset($res['data']) && $res['data'] ? $res['data'] : array();
|
||||
if (empty($data)) {
|
||||
echo "clients_".$k." 没有查询到可辅种数据".PHP_EOL.PHP_EOL;
|
||||
continue;
|
||||
}
|
||||
// 判断返回值
|
||||
if (empty($res['msg'])) {
|
||||
if (isset($res['ret']) && $res['ret']==200) {
|
||||
echo "clients_".$k." 辅种数据下载成功!!!".PHP_EOL.PHP_EOL;
|
||||
echo '【提醒】未配置passkey的站点都会跳过!'.PHP_EOL.PHP_EOL;
|
||||
} else {
|
||||
@@ -331,214 +319,203 @@ class AutoReseed
|
||||
echo '-----辅种失败,原因:' .$errmsg.PHP_EOL.PHP_EOL;
|
||||
continue;
|
||||
}
|
||||
// 当前客户端可辅种数据
|
||||
foreach ($reseed as $info_hash => $vv) {
|
||||
// 当前种子哈希对应的目录
|
||||
$downloadDir = $infohash_Dir[$info_hash];
|
||||
foreach ($vv['torrent'] as $id => $value) {
|
||||
$_url = $url = '';
|
||||
$download_page = $details_url = '';
|
||||
// 遍历当前客户端可辅种数据
|
||||
foreach ($data as $info_hash => $reseed) {
|
||||
$downloadDir = $infohash_Dir[$info_hash]; // 辅种目录
|
||||
foreach ($reseed['torrent'] as $id => $value) {
|
||||
// 匹配的辅种数据累加
|
||||
self::$wechatMsg['reseedCount']++;
|
||||
// 站点id
|
||||
$sid = $value['sid'];
|
||||
// 种子id
|
||||
$torrent_id = $value['torrent_id'];
|
||||
// 站点名
|
||||
if (empty($sites[$sid]['site'])) {
|
||||
// 检查禁用站点
|
||||
if (empty(self::$sites[$sid])) {
|
||||
echo '-----当前站点不受支持,已跳过。' .PHP_EOL.PHP_EOL;
|
||||
self::$wechatMsg['reseedSkip']++;
|
||||
continue;
|
||||
}
|
||||
$siteName = $sites[$sid]['site'];
|
||||
// 站名
|
||||
$siteName = self::$sites[$sid]['site'];
|
||||
// 错误通知
|
||||
self::setNotify($siteName, $sid, $torrent_id);
|
||||
// 页面规则
|
||||
$download_page = str_replace('{}', $torrent_id, $sites[$sid]['download_page']);
|
||||
$_url = 'https://' .$sites[$sid]['base_url']. '/' .$download_page;
|
||||
// 协议
|
||||
$protocol = self::$sites[$sid]['is_https'] == 0 ? 'http://' : 'https://';
|
||||
// 种子页规则
|
||||
$download_page = str_replace('{}', $torrent_id, self::$sites[$sid]['download_page']);
|
||||
|
||||
// 临时种子连接(会写入辅种日志)
|
||||
$_url = $protocol . self::$sites[$sid]['base_url']. '/' .$download_page;
|
||||
/**
|
||||
* 前置检测
|
||||
* 辅种前置检查
|
||||
*/
|
||||
// passkey检测
|
||||
if (empty($configALL[$siteName]['passkey'])) {
|
||||
//echo '-------因当前' .$siteName. "站点未设置passkey,已跳过!!".PHP_EOL.PHP_EOL;
|
||||
self::$wechatMsg['reseedSkip']++;
|
||||
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']++;
|
||||
if (!self::reseedCheck($k, $value, $infohash_Dir, $downloadDir, $_url)) {
|
||||
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;
|
||||
/**
|
||||
* 种子推送方式区分
|
||||
*/
|
||||
if (in_array($siteName, self::$cookieCheck)) {
|
||||
// 特殊站点:种子元数据推送给下载器
|
||||
$reseedPass = false; // 标志:跳过辅种
|
||||
$cookie = trim($configALL[$siteName]['cookie']);
|
||||
$userAgent = $configALL['default']['userAgent'];
|
||||
switch ($siteName) {
|
||||
case 'hdchina':
|
||||
// 请求详情页
|
||||
$details_html = self::getNexusPHPdetailsPage($protocol, $value, $cookie, $userAgent);
|
||||
if (is_null($details_html)) {
|
||||
$reseedPass = true;
|
||||
break;
|
||||
}
|
||||
// 搜索种子地址
|
||||
$remove = '{hash}';
|
||||
$offset = strpos($details_html, str_replace($remove, '', self::$sites[$sid]['download_page']));
|
||||
if ($offset === false) {
|
||||
$reseedPass = true;
|
||||
self::cookieExpired($siteName); // cookie失效
|
||||
break;
|
||||
}
|
||||
// 提取种子地址
|
||||
$regex = "/download.php\?hash\=(.*?)[\"|\']/i"; // 提取种子hash的正则表达式
|
||||
if (preg_match($regex, $details_html, $matchs)) {
|
||||
// 拼接种子地址
|
||||
$_url = str_replace($remove, $matchs[1], $_url);
|
||||
echo "下载种子:".$_url.PHP_EOL;
|
||||
$url = download($_url, $cookie, $userAgent);
|
||||
if (strpos($url, '第一次下载提示') != false) {
|
||||
self::$noReseed[] = $siteName;
|
||||
$reseedPass = true;
|
||||
|
||||
echo "当前站点触发第一次下载提示,已加入排除列表".PHP_EOL;
|
||||
sleepIYUU(30, '请进入瓷器详情页,点右上角蓝色框:下载种子,成功后更新cookie!');
|
||||
ff($siteName. '站点,辅种时触发第一次下载提示!');
|
||||
break;
|
||||
}
|
||||
if (strpos($url, '系统检测到过多的种子下载请求') != false) {
|
||||
$configALL[$siteName]['limit'] = 1;
|
||||
$reseedPass = true;
|
||||
|
||||
echo "当前站点触发人机验证,已加入流控列表".PHP_EOL;
|
||||
ff($siteName. '站点,辅种时触发人机验证!');
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
$reseedPass = true;
|
||||
sleepIYUU(15, $siteName.'正则表达式未匹配到种子地址,可能站点已更新,请联系IYUU作者!');
|
||||
}
|
||||
break;
|
||||
case 'hdcity':
|
||||
$details_url = $protocol . self::$sites[$sid]['base_url'] . '/t-' .$torrent_id;
|
||||
print "种子详情页:".$details_url.PHP_EOL;
|
||||
if (empty($configALL[$siteName]['cuhash'])) {
|
||||
// 请求包含cuhash的列表页
|
||||
$html = download($protocol .self::$sites[$sid]['base_url']. '/pt', $cookie, $userAgent);
|
||||
// 搜索cuhash
|
||||
$offset = strpos($html, 'cuhash=');
|
||||
if ($offset === false) {
|
||||
self::cookieExpired($siteName); // cookie失效
|
||||
$reseedPass = true;
|
||||
break;
|
||||
}
|
||||
// 提取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;
|
||||
case 'hdsky':
|
||||
// 请求详情页
|
||||
$details_html = self::getNexusPHPdetailsPage($protocol, $value, $cookie, $userAgent);
|
||||
if (is_null($details_html)) {
|
||||
$reseedPass = true;
|
||||
break;
|
||||
}
|
||||
// 搜索种子地址
|
||||
$remove = 'id={}&passkey={passkey}';
|
||||
$offset = strpos($details_html, str_replace($remove, '', self::$sites[$sid]['download_page']));
|
||||
if ($offset === false) {
|
||||
self::cookieExpired($siteName); // cookie失效
|
||||
$reseedPass = true;
|
||||
break;
|
||||
}
|
||||
// 提取种子地址
|
||||
$regex = '/download.php\?(.*?)["|\']/i';
|
||||
if (preg_match($regex, $details_html, $matchs)) {
|
||||
// 拼接种子地址
|
||||
$download_page = str_replace($remove, '', self::$sites[$sid]['download_page']).str_replace('&', '&', $matchs[1]);
|
||||
$_url = $protocol . self::$sites[$sid]['base_url']. '/' . $download_page;
|
||||
print "下载种子:".$_url.PHP_EOL;
|
||||
$url = download($_url, $cookie, $userAgent);
|
||||
if (strpos($url, '第一次下载提示') != false) {
|
||||
self::$noReseed[] = $siteName;
|
||||
$reseedPass = true;
|
||||
|
||||
echo "当前站点触发第一次下载提示,已加入排除列表".PHP_EOL;
|
||||
echo "请进入种子详情页,下载种子,成功后更新cookie!".PHP_EOL;
|
||||
sleepIYUU(30, '请进入种子详情页,下载种子,成功后更新cookie!');
|
||||
ff($siteName. '站点,辅种时触发第一次下载提示!');
|
||||
}
|
||||
} else {
|
||||
$reseedPass = true;
|
||||
sleepIYUU(15, $siteName.'正则表达式未匹配到种子地址,可能站点已更新,请联系IYUU作者!');
|
||||
}
|
||||
break;
|
||||
default:
|
||||
// 默认站点:推送给下载器种子URL链接
|
||||
break;
|
||||
}
|
||||
wlog('clients_'.$k.PHP_EOL.$downloadDir.PHP_EOL."-------因当前" .$siteName. "站点触发流控,已跳过!! {$_url}".PHP_EOL.PHP_EOL, 'reseedLimit');
|
||||
self::$wechatMsg['reseedSkip']++;
|
||||
continue;
|
||||
// 检查switch内是否异常
|
||||
if ($reseedPass) {
|
||||
continue;
|
||||
}
|
||||
$downloadUrl = $_url;
|
||||
} else {
|
||||
$url = self::getTorrentUrl($siteName, $_url);
|
||||
$downloadUrl = $url;
|
||||
}
|
||||
// 重复做种检测
|
||||
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;
|
||||
}
|
||||
/**
|
||||
* 种子URL组合方式区分
|
||||
*/
|
||||
$url = self::getTorrentUrl($siteName, $_url);
|
||||
$reseedPass = false;
|
||||
// 特殊站点:种子元数据推送给下载器
|
||||
switch ($siteName) {
|
||||
case 'hdchina':
|
||||
$cookie = isset($configALL[$siteName]['cookie']) ? $configALL[$siteName]['cookie'] : '';
|
||||
$userAgent = $configALL['default']['userAgent'];
|
||||
// 拼接URL
|
||||
$details_page = str_replace('{}', $value['torrent_id'], 'details.php?id={}&hit=1');
|
||||
$details_url = 'https://' .$sites[$sid]['base_url']. '/' .$details_page;
|
||||
print "种子详情页:".$details_url.PHP_EOL;
|
||||
$details_html = download($details_url, $cookie, $userAgent);
|
||||
if (empty($details_html)) {
|
||||
echo 'cookie已过期,请更新后重新辅种!已加入排除列表'.PHP_EOL;
|
||||
$t = 30;
|
||||
do {
|
||||
echo microtime(true)." cookie已过期,请更新后重新辅种!已加入排除列表!,{$t}秒后继续...".PHP_EOL;
|
||||
sleep(1);
|
||||
} while (--$t > 0);
|
||||
$configALL[$siteName]['cookie'] = '';
|
||||
// 标志:跳过辅种
|
||||
$reseedPass = true;
|
||||
break;
|
||||
}
|
||||
if (strpos($details_html, '没有该ID的种子') != false) {
|
||||
echo '种子已被删除!'.PHP_EOL;
|
||||
self::sendNotify('404');
|
||||
// 标志:跳过辅种
|
||||
$reseedPass = true;
|
||||
break;
|
||||
}
|
||||
// 提取种子下载地址
|
||||
$download_page = str_replace('{}', '', $sites[$sid]['download_page']);
|
||||
$offset = strpos($details_html, $download_page);
|
||||
$urlTemp = substr($details_html, $offset, 50);
|
||||
// 种子地址
|
||||
$_url = substr($urlTemp, 0, strpos($urlTemp, '">'));
|
||||
if (empty($_url)) {
|
||||
echo '未知错误,未提取到种子URL,请联系脚本作者!'.PHP_EOL;
|
||||
// 标志:跳过辅种
|
||||
$reseedPass = true;
|
||||
break;
|
||||
}
|
||||
$_url = 'https://' .$sites[$sid]['base_url']. '/' . $_url;
|
||||
print "种子下载页:".$_url.PHP_EOL;
|
||||
$url = download($_url, $cookie, $userAgent);
|
||||
#p($url);
|
||||
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[] = 'hdchina';
|
||||
// 标志:跳过辅种
|
||||
$reseedPass = true;
|
||||
}
|
||||
break;
|
||||
case 'hdcity':
|
||||
$cookie = isset($configALL[$siteName]['cookie']) ? $configALL[$siteName]['cookie'] : '';
|
||||
$userAgent = $configALL['default']['userAgent'];
|
||||
print "种子:".$_url.PHP_EOL;
|
||||
if (isset($configALL[$siteName]['cuhash'])) {
|
||||
// 已获取cuhash
|
||||
# code...
|
||||
} else {
|
||||
// 获取cuhash
|
||||
$html = download('https://' .$sites[$sid]['base_url']. '/pt', $cookie, $userAgent);
|
||||
// 提取种子下载地址
|
||||
$offset = strpos($html, 'cuhash=');
|
||||
$len = strlen('cuhash=');
|
||||
$cuhashTemp = substr($html, $offset+$len, 40);
|
||||
$configALL[$siteName]['cuhash'] = substr($cuhashTemp, 0, strpos($cuhashTemp, '"'));
|
||||
}
|
||||
$url = $_url."&cuhash=". $configALL[$siteName]['cuhash'];
|
||||
// 城市下载种子时会302转向
|
||||
$url = download($url, $cookie, $userAgent);
|
||||
if (strpos($url, 'Non-exist torrent id!') != false) {
|
||||
echo '种子已被删除!'.PHP_EOL;
|
||||
self::sendNotify('404');
|
||||
// 标志:跳过辅种
|
||||
$reseedPass = true;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
// 默认站点:推送给下载器种子URL链接
|
||||
break;
|
||||
}
|
||||
// 检查switch内是否异常
|
||||
if ($reseedPass) {
|
||||
continue;
|
||||
}
|
||||
// 把拼接的种子URL,推送给下载器
|
||||
|
||||
// 把种子URL,推送给下载器
|
||||
echo '推送种子:' . $_url . PHP_EOL;
|
||||
$ret = false;
|
||||
// 成功返回:true
|
||||
// 成功true | 失败false
|
||||
$ret = self::add($k, $url, $downloadDir);
|
||||
|
||||
// 按站点规范日志内容
|
||||
switch ($siteName) {
|
||||
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;
|
||||
// 规范日志内容
|
||||
$log = 'clients_'. $k . PHP_EOL . $downloadDir . PHP_EOL . $downloadUrl . PHP_EOL.PHP_EOL;
|
||||
if ($ret) {
|
||||
// 成功的种子
|
||||
// 成功
|
||||
// 操作流控参数
|
||||
if (isset($configALL[$siteName]['limitRule']) && $configALL[$siteName]['limitRule']) {
|
||||
$limitRule = $configALL[$siteName]['limitRule'];
|
||||
if ($limitRule['count']) {
|
||||
$configALL[$siteName]['limitRule']['count']--;
|
||||
$configALL[$siteName]['limitRule']['time'] = time();
|
||||
}
|
||||
}
|
||||
// 添加成功,以infohash为文件名,写入缓存;所有客户端共用缓存,不可以重复辅种!如果需要重复辅种,请经常删除缓存!
|
||||
wlog($log, $value['info_hash'], self::$cacheHash);
|
||||
wlog($log, 'reseedSuccess');
|
||||
// 成功累加
|
||||
self::$wechatMsg['reseedSuccess']++;
|
||||
} else {
|
||||
// 失败的种子
|
||||
// 失败
|
||||
wlog($log, 'reseedError');
|
||||
// 失败累加
|
||||
self::$wechatMsg['reseedError']++;
|
||||
@@ -550,17 +527,60 @@ 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做种客户端转移
|
||||
*/
|
||||
private static function move()
|
||||
{
|
||||
global $configALL;
|
||||
//遍历客户端
|
||||
foreach (self::$links as $k => $v) {
|
||||
if (self::$move[0] == $k) {
|
||||
echo "clients_".$k."是目标转移客户端,避免冲突,已跳过!".PHP_EOL.PHP_EOL;
|
||||
continue;
|
||||
}
|
||||
if (empty(self::$links[$k])) {
|
||||
echo "clients_".$k." 用户名或密码未配置,已跳过".PHP_EOL.PHP_EOL;
|
||||
continue;
|
||||
}
|
||||
echo "正在从下载器 clients_".$k." 获取种子哈希……".PHP_EOL;
|
||||
$move = []; // 客户端做种列表 传址
|
||||
$hashArray = self::$links[$k]['rpc']->getList($move);
|
||||
@@ -578,8 +598,12 @@ class AutoReseed
|
||||
echo "clients_".$k." 全部转移成功,本次无需转移!".PHP_EOL.PHP_EOL;
|
||||
continue;
|
||||
}
|
||||
// 循环转移做种客户端
|
||||
//遍历当前客户端种子
|
||||
foreach ($infohash_Dir as $info_hash => $downloadDir) {
|
||||
// 调用路径过滤
|
||||
if (self::pathFilter($downloadDir)) {
|
||||
continue;
|
||||
}
|
||||
// 做种实际路径与相对路径之间互转
|
||||
echo '转换前:'.$downloadDir.PHP_EOL;
|
||||
$downloadDir = self::pathReplace($downloadDir);
|
||||
@@ -652,15 +676,114 @@ class AutoReseed
|
||||
// 转移成功的种子,以infohash为文件名,写入缓存
|
||||
wlog($log, $info_hash, self::$cacheMove);
|
||||
wlog($log, 'MoveSuccess'.$k);
|
||||
self::$wechatMsg['MoveSuccess']++;
|
||||
} else {
|
||||
// 失败的种子
|
||||
wlog($log, 'MoveError'.$k);
|
||||
self::$wechatMsg['MoveError']++;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
/**
|
||||
* 辅种前置检查
|
||||
* @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
|
||||
* @param array $infohash_Dir infohash与路径对应的字典
|
||||
* @return bool true 过滤 | false 不过滤
|
||||
*/
|
||||
private static function hashFilter(&$infohash_Dir = array())
|
||||
{
|
||||
@@ -674,6 +797,7 @@ class AutoReseed
|
||||
}
|
||||
/**
|
||||
* 实际路径与相对路径之间互相转换
|
||||
* @return string | null string转换成功
|
||||
*/
|
||||
private static function pathReplace($path = '')
|
||||
{
|
||||
@@ -709,61 +833,142 @@ class AutoReseed
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取站点种子的URL
|
||||
* 处理转移种子时所设置的过滤器、选择器
|
||||
* @param string $path
|
||||
* @return bool true 过滤 | false 不过滤
|
||||
*/
|
||||
private static function getTorrentUrl($site = '', $_url = '')
|
||||
private static function pathFilter(&$path = '')
|
||||
{
|
||||
global $configALL;
|
||||
switch ($site) {
|
||||
case 'ttg':
|
||||
$url = $_url."/". $configALL[$site]['passkey'];
|
||||
break;
|
||||
case 'm-team':
|
||||
case 'moecat':
|
||||
case 'hdbd':
|
||||
$ip_type = '';
|
||||
if (isset($configALL[$site]['ip_type'])) {
|
||||
$ip_type = $configALL[$site]['ip_type'] == 'ipv6' ? '&ipv6=1' : '';
|
||||
$path = rtrim($path, DIRECTORY_SEPARATOR); // 提高Windows转移兼容性
|
||||
// 转移过滤器、选择器 David/2020年7月11日
|
||||
$path_filter = isset($configALL['default']['move']['path_filter']) && !empty($configALL['default']['move']['path_filter']) ? $configALL['default']['move']['path_filter'] : null;
|
||||
$path_selector = isset($configALL['default']['move']['path_selector']) && !empty($configALL['default']['move']['path_selector']) ? $configALL['default']['move']['path_selector'] : null;
|
||||
if (\is_null($path_filter) && \is_null($path_selector)) {
|
||||
return false;
|
||||
} elseif (\is_null($path_filter)) {
|
||||
//选择器
|
||||
if (\is_array($path_selector)) {
|
||||
foreach ($path_selector as $pathName) {
|
||||
if (strpos($path, $pathName)===0) { // 没用$path == $key判断,是为了提高兼容性
|
||||
return false;
|
||||
}
|
||||
}
|
||||
$url = $_url."&passkey=". $configALL[$site]['passkey'] . $ip_type. "&https=1";
|
||||
break;
|
||||
case 'dicmusic':
|
||||
$_url = str_replace('{torrent_pass}', $configALL[$site]['passkey'], $_url);
|
||||
$url = str_replace('{authkey}', $configALL[$site]['authkey'], $_url);
|
||||
break;
|
||||
default:
|
||||
if (strpos($_url,'{passkey}') !== false) {
|
||||
$url = str_replace('{passkey}', $configALL[$site]['passkey'], $_url);
|
||||
} else {
|
||||
$url = $_url."&passkey=". $configALL[$site]['passkey'];
|
||||
echo '已跳过!转移选择器未匹配到:'.$path.PHP_EOL;
|
||||
return true;
|
||||
}
|
||||
} elseif (\is_null($path_selector)) {
|
||||
//过滤器
|
||||
if (\is_array($path_filter)) {
|
||||
foreach ($path_filter as $pathName) {
|
||||
if (strpos($path, $pathName)===0) { // 没用$path == $key判断,是为了提高兼容性
|
||||
echo '已跳过!转移过滤器匹配到:'.$path.PHP_EOL;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
break;
|
||||
return false;
|
||||
}
|
||||
} else {
|
||||
//同时设置过滤器、选择器
|
||||
if (\is_array($path_filter) && \is_array($path_selector)) {
|
||||
//先过滤器
|
||||
foreach ($path_filter as $pathName) {
|
||||
if (strpos($path, $pathName)===0) {
|
||||
echo '已跳过!转移过滤器匹配到:'.$path.PHP_EOL;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
//后选择器
|
||||
foreach ($path_selector as $pathName) {
|
||||
if (strpos($path, $pathName)===0) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
echo '已跳过!转移选择器未匹配到:'.$path.PHP_EOL;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取站点种子的URL
|
||||
* @param string $site
|
||||
* @param string $url
|
||||
* @return string 带host的完整种子下载连接
|
||||
*/
|
||||
private static function getTorrentUrl($site = '', $url = '')
|
||||
{
|
||||
global $configALL;
|
||||
// 兼容旧配置,进行补全
|
||||
if (isset($configALL[$site]['passkey']) && $configALL[$site]['passkey']) {
|
||||
if (empty($configALL[$site]['url_replace'])) {
|
||||
$configALL[$site]['url_replace'] = array('{passkey}' => trim($configALL[$site]['passkey']));
|
||||
}
|
||||
if (empty($configALL[$site]['url_join'])) {
|
||||
$configALL[$site]['url_join'] = array();
|
||||
if (in_array($site, array('m-team','mocat','hdbd'))) {
|
||||
if (isset($configALL[$site]['ip_type'])) {
|
||||
$configALL[$site]['url_join'][] = $configALL[$site]['ip_type'].'=1';
|
||||
}
|
||||
$configALL[$site]['url_join'][] = 'https=1';
|
||||
}
|
||||
}
|
||||
}
|
||||
// 通用操作:替换
|
||||
if (isset($configALL[$site]['url_replace']) && $configALL[$site]['url_replace']) {
|
||||
$url = strtr($url, $configALL[$site]['url_replace']);
|
||||
}
|
||||
// 通用操作:拼接
|
||||
if (isset($configALL[$site]['url_join']) && $configALL[$site]['url_join']) {
|
||||
$url = $url.(strpos($url, '?') === false ? '?' : '&').implode('&', $configALL[$site]['url_join']);
|
||||
}
|
||||
return $url;
|
||||
}
|
||||
/**
|
||||
* 微信模板消息拼接方法
|
||||
* @return string 发送情况,json
|
||||
*/
|
||||
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;
|
||||
$text = 'IYUU自动辅种-统计报表';
|
||||
$desp = '### 版本号:'. self::VER . $br;
|
||||
$desp .= '**支持站点:'.self::$wechatMsg['sitesCount']. '** [当前支持自动辅种的站点数量]' .$br;
|
||||
$desp .= '**总做种:'.self::$wechatMsg['hashCount'] . '** [客户端做种的hash总数]' .$br;
|
||||
$desp .= '**返回数据:'.self::$wechatMsg['reseedCount']. '** [服务器返回的可辅种数据]' .$br;
|
||||
$desp .= '**成功:'.self::$wechatMsg['reseedSuccess']. '** [辅种成功,会把hash加入缓存]' .$br;
|
||||
$desp .= '**返回数据:'.self::$wechatMsg['reseedCount']. '** [服务器返回的可辅种数据]' .$br;
|
||||
$desp .= '**成功:'.self::$wechatMsg['reseedSuccess']. '** [会把hash加入辅种缓存]' .$br;
|
||||
$desp .= '**失败:'.self::$wechatMsg['reseedError']. '** [种子下载失败或网络超时引起]' .$br;
|
||||
$desp .= '**重复:'.self::$wechatMsg['reseedRepeat']. '** [客户端已做种]' .$br;
|
||||
$desp .= '**跳过:'.self::$wechatMsg['reseedSkip']. '** [未设置passkey]' .$br;
|
||||
$desp .= '**忽略:'.self::$wechatMsg['reseedPass']. '** [成功添加存在缓存]' .$br;
|
||||
$desp .= $br.'**如需重新辅种,请删除:./torrent/cachehash 内的所有辅种缓存。**'.$br;
|
||||
$desp .= '*此消息将在3天后过期*。';
|
||||
// 失败详情
|
||||
if (self::$wechatMsg['reseedError']) {
|
||||
$desp .= '**失败详情,见 ./torrent/cache/reseedError.txt**'.$br;
|
||||
}
|
||||
// 重新辅种
|
||||
$desp .= '**如需重新辅种,请删除 ./torrent/cachehash 辅种缓存。**'.$br;
|
||||
// 移动做种
|
||||
if (self::$wechatMsg['MoveSuccess'] || self::$wechatMsg['MoveError']) {
|
||||
$desp .= $br.'----------'.$br;
|
||||
$desp .= '**移动成功:'.self::$wechatMsg['MoveSuccess']. '** [会把hash加入移动缓存]' .$br;
|
||||
$desp .= '**移动失败:'.self::$wechatMsg['MoveError']. '** [解决错误提示,可以重试]' .$br;
|
||||
$desp .= '**如需重新移动,请删除 ./torrent/cachemove 移动缓存。**'.$br;
|
||||
}
|
||||
$desp .= $br.'*此消息将在3天后过期*。';
|
||||
return ff($text, $desp);
|
||||
}
|
||||
|
||||
/**
|
||||
* 错误的种子通知服务器
|
||||
* @param string $error
|
||||
* @return bool
|
||||
*/
|
||||
private static function sendNotify($error = '')
|
||||
{
|
||||
@@ -783,8 +988,12 @@ class AutoReseed
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* 设置通知主体
|
||||
* @param string $siteName
|
||||
* @param int $sid
|
||||
* @param int $torrent_id
|
||||
*/
|
||||
private static function setNotify($siteName = '', $sid = 0, $torrent_id = 0)
|
||||
{
|
||||
@@ -795,8 +1004,12 @@ class AutoReseed
|
||||
'torrent_id'=> $torrent_id,
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* 备份功能
|
||||
* @param string $key
|
||||
* @param array $array
|
||||
* @return bool|int
|
||||
*/
|
||||
private static function backup($key = '', $array = [])
|
||||
{
|
||||
|
@@ -168,7 +168,7 @@ class qBittorrent extends AbstractClient
|
||||
$torrents = json_decode($this->torrentList());
|
||||
$response = '';
|
||||
foreach ($torrents as $torrent) {
|
||||
$response .= $this->torrentDelete($torrent->hash, $deleteFiles);
|
||||
$response .= $this->delete($torrent->hash, $deleteFiles);
|
||||
}
|
||||
|
||||
return $response;
|
||||
@@ -236,7 +236,8 @@ class qBittorrent extends AbstractClient
|
||||
// Find authentication cookie and set in curl connection
|
||||
foreach ($this->curl->response_headers as $header) {
|
||||
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;
|
||||
}
|
||||
};
|
||||
|
@@ -618,6 +618,10 @@ class transmission extends AbstractClient
|
||||
|
||||
$ch = curl_init();
|
||||
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_HTTPAUTH, CURLAUTH_BASIC);
|
||||
curl_setopt($ch, CURLOPT_USERPWD, $this->username . ':' . $this->password);
|
||||
|
@@ -1,5 +1,6 @@
|
||||
<?php
|
||||
namespace IYUU\Library;
|
||||
|
||||
/**
|
||||
* @class IFile
|
||||
* @brief IFile 文件处理类
|
||||
|
@@ -1,13 +1,15 @@
|
||||
<?php
|
||||
namespace IYUU\Library;
|
||||
|
||||
use Curl\Curl;
|
||||
|
||||
/**
|
||||
* IYUU用户注册、认证
|
||||
*/
|
||||
class Oauth
|
||||
{
|
||||
// 合作的站点
|
||||
public static $sites = ['ourbits','hddolby','hdhome','pthome','moecat'];
|
||||
public static $sites = ['ourbits','hddolby','hdhome','pthome','chdbits'];
|
||||
// 爱语飞飞token
|
||||
public static $token = '';
|
||||
// 合作站点用户id
|
||||
|
@@ -1,5 +1,6 @@
|
||||
<?php
|
||||
namespace IYUU\Library;
|
||||
|
||||
/**
|
||||
* Created by PhpStorm.
|
||||
* User: 大卫
|
||||
|
@@ -1,6 +1,7 @@
|
||||
<?php
|
||||
use IYUU\Library\IFile;
|
||||
use IYUU\Library\Table;
|
||||
|
||||
/**
|
||||
* 调试函数
|
||||
* @param $data
|
||||
@@ -455,3 +456,12 @@ function isWin()
|
||||
{
|
||||
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
|
||||
AppName=$1
|
||||
else
|
||||
echo 'AppName not null'
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ $2 ]; then
|
||||
torrentDir=$2
|
||||
else
|
||||
echo 'torrentDir not null'
|
||||
exit 2
|
||||
fi
|
||||
|
||||
# 脚本当前目录
|
||||
|
@@ -7,6 +7,7 @@
|
||||
* IYUU自动辅种工具-【安装篇】Windows之git https://www.iyuu.cn/archives/367/
|
||||
* IYUU自动辅种工具-【安装篇】群晖Linux之git https://www.iyuu.cn/archives/372/
|
||||
* 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/337/
|
||||
* IYUU自动下载种子--之RSS订阅使用教程 https://www.iyuu.cn/archives/349/
|
||||
@@ -17,6 +18,8 @@
|
||||
php ./iyuu.php
|
||||
*/
|
||||
return array(
|
||||
// 有变化才发送通知(辅种成功 + 失败 > 0)
|
||||
'notify_on_change' => false,
|
||||
// 1.【必须配置】爱语飞飞 微信通知,请访问https://iyuu.cn 用微信扫码申请
|
||||
'iyuu.cn' => 'IYUU',
|
||||
// 2.全局默认配置
|
||||
@@ -30,9 +33,9 @@ return array(
|
||||
array(
|
||||
'type' => 'transmission', // 支持:transmission、qBittorrent
|
||||
'host' => 'http://127.0.0.1:9091/transmission/rpc', // 警告!注意:transmission/rpc这段别动,你只需要修改 127.0.0.1:9091
|
||||
'username' => '',
|
||||
'password' => '',
|
||||
'BT_backup' => '/var/lib/transmission/torrents', // 移动做种:如果脚本与当前客户端不在一台机器,必须配置
|
||||
'username' => '', // 没有用户名请填写null
|
||||
'password' => '', // 没有密码 请填写null
|
||||
'BT_backup' => '/torrents', // 移动做种:如果脚本与当前客户端不在一台机器,必须配置
|
||||
'move' => 0, // 0不移动,1移动并辅种,2移动且只在当前客户端辅种
|
||||
),
|
||||
# 结束
|
||||
@@ -40,10 +43,10 @@ return array(
|
||||
array(
|
||||
'type' => 'qBittorrent', // 支持:transmission、qBittorrent
|
||||
'host' => 'http://127.0.0.1:8083',
|
||||
'username' => '',
|
||||
'username' => 'admin',
|
||||
'password' => '',
|
||||
'root_folder'=> 1, // 0不创建根目录,1创建根目录
|
||||
'BT_backup' => 'C:\Users\ASUS\AppData\Local\qBittorrent\BT_backup', // 移动做种:必须配置,Linux搜索方法:find / -name BT_backup
|
||||
'root_folder'=> 1, // 0不创建根目录,1创建根目录(下载器默认1)
|
||||
'BT_backup' => '/BT_backup', // 移动做种:必须配置,Linux搜索方法:find / -name BT_backup
|
||||
'move' => 0, // 0不移动,1移动并辅种,2移动且只在当前客户端辅种
|
||||
),
|
||||
# 结束
|
||||
@@ -56,14 +59,16 @@ return array(
|
||||
// 当前路径 => 目标路径
|
||||
'/downloads' => '/volume1',
|
||||
),
|
||||
'paused' => 0, //转移成功,自动开始任务:0开始,1暂停
|
||||
'path_filter'=> array(), //转移过滤器:不转移此路径内文件
|
||||
'path_selector' => array(), //转移选择器:只转移此路径内文件(为空时,全转移) 【优先级:过滤器 > 选择器】
|
||||
'paused' => 1, //转移成功,自动开始任务:0开始,1暂停
|
||||
'skip_check' => 0, //转移成功,跳校验:0不跳、1跳校验
|
||||
'delete_torrent' => 0, //转移成功,删除当前做种:0不删除、1删除
|
||||
),
|
||||
// 6.RSS工作模式
|
||||
'workingMode' => 0,
|
||||
// 7.监控目录
|
||||
'watch' => '/volume1/downloads',
|
||||
'watch' => '/volume1/watch',
|
||||
// 8.RSS过滤参数配置
|
||||
'filter' => array(
|
||||
'size'=>array(
|
||||
@@ -94,13 +99,22 @@ return array(
|
||||
* 以下为各站点的独立配置(互不影响、互不冲突)
|
||||
* 自动辅种:需要配置各站的passkey(没有配置passkey的站点会自动跳过)
|
||||
*/
|
||||
// ourbits
|
||||
// 【合作站点用户鉴权】ourbits
|
||||
'ourbits' => array(
|
||||
// 如果需要用下载免费种脚本,须配置(只是自动辅种,可以不配置此项)
|
||||
'cookie' => '',
|
||||
// 如果需要自动辅种,必须配置
|
||||
'passkey' => '',
|
||||
'id' => 0, // 用户ID(不是用户名)
|
||||
'url_replace' => array(),
|
||||
'url_join' => array(
|
||||
//'ipv6=1', // 种子Tracker的IP地址选择 可选:ipv4,ipv6
|
||||
//'https=1',
|
||||
),
|
||||
'limitRule' => array(
|
||||
'count' => 20, // 每次辅种20个
|
||||
'sleep' => 15, // 最少休眠15秒
|
||||
),
|
||||
'workingMode' => 0,
|
||||
'watch' => '/root/downloads',
|
||||
'filter' => array(
|
||||
@@ -109,30 +123,59 @@ return array(
|
||||
'max' => '280GB',
|
||||
),
|
||||
),
|
||||
|
||||
),
|
||||
// hddolby
|
||||
// 【合作站点用户鉴权】hddolby
|
||||
'hddolby' => array(
|
||||
// 如果需要用下载免费种脚本,须配置(只是自动辅种,可以不配置此项)
|
||||
'cookie' => '',
|
||||
// 如果需要自动辅种,必须配置
|
||||
'passkey' => '',
|
||||
'id' => 0, // 用户ID(不是用户名)
|
||||
'url_replace' => array(),
|
||||
'url_join' => array(),
|
||||
'limitRule' => array(
|
||||
'count' => 20, // 每次辅种20个
|
||||
'sleep' => 5, // 最少休眠5秒
|
||||
),
|
||||
),
|
||||
// hdhome
|
||||
// 【合作站点用户鉴权】hdhome
|
||||
'hdhome' => array(
|
||||
// 如果需要用下载免费种脚本,须配置(只是自动辅种,可以不配置此项)
|
||||
'cookie' => '',
|
||||
// 如果需要自动辅种,必须配置
|
||||
'passkey' => '',
|
||||
'id' => 0, // 用户ID(不是用户名)
|
||||
'url_replace' => array(),
|
||||
'url_join' => array(),
|
||||
'limitRule' => array(
|
||||
'count' => 20, // 每次辅种20个
|
||||
'sleep' => 5, // 最少休眠5秒
|
||||
),
|
||||
),
|
||||
// PTHome
|
||||
// 【合作站点用户鉴权】PTHome
|
||||
'pthome' => array(
|
||||
// 如果需要用下载免费种脚本,须配置(只是自动辅种,可以不配置此项)
|
||||
'cookie' => '',
|
||||
// 如果需要自动辅种,必须配置
|
||||
'passkey' => '',
|
||||
'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(),
|
||||
),
|
||||
// MoeCat
|
||||
'moecat' => array(
|
||||
@@ -141,8 +184,15 @@ return array(
|
||||
// 如果需要自动辅种,必须配置
|
||||
'passkey' => '',
|
||||
'id' => 0, // 用户ID(不是用户名)
|
||||
// 种子Tracker的IP地址选择 可选:ipv4,ipv6
|
||||
'ip_type' => 'ipv4',
|
||||
'url_replace' => array(),
|
||||
'url_join' => array(
|
||||
//'ipv6=1', // 种子Tracker的IP地址选择 可选:ipv4,ipv6
|
||||
'https=1',
|
||||
),
|
||||
'limitRule' => array(
|
||||
'count' => 20, // 每次辅种20个
|
||||
'sleep' => 15, // 最少休眠15秒
|
||||
),
|
||||
),
|
||||
// m-team
|
||||
'm-team' => array(
|
||||
@@ -150,24 +200,10 @@ return array(
|
||||
'cookie' => 'tp=',
|
||||
// 15.m-team的passkey 【必须配置】
|
||||
'passkey' => '',
|
||||
// 种子Tracker的IP地址选择 可选:ipv4,ipv6
|
||||
'ip_type' => 'ipv4',
|
||||
'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',
|
||||
),
|
||||
'url_replace' => array(),
|
||||
'url_join' => array(
|
||||
//'ipv6=1', // 种子Tracker的IP地址选择 可选:ipv4,ipv6
|
||||
'https=1',
|
||||
),
|
||||
),
|
||||
// keepfrds
|
||||
@@ -176,6 +212,8 @@ return array(
|
||||
'cookie' => '',
|
||||
// 如果需要自动辅种,必须配置
|
||||
'passkey' => '',
|
||||
'url_replace' => array(),
|
||||
'url_join' => array(),
|
||||
'workingMode' => 1,
|
||||
'watch' => '',
|
||||
'filter' => array(
|
||||
@@ -191,6 +229,8 @@ return array(
|
||||
'cookie' => '',
|
||||
// 如果需要自动辅种,必须配置
|
||||
'passkey' => '',
|
||||
'url_replace' => array(),
|
||||
'url_join' => array(),
|
||||
),
|
||||
// tjupt
|
||||
'tjupt' => array(
|
||||
@@ -198,6 +238,8 @@ return array(
|
||||
'cookie' => '',
|
||||
// 如果需要自动辅种,必须配置
|
||||
'passkey' => '',
|
||||
'url_replace' => array(),
|
||||
'url_join' => array(),
|
||||
),
|
||||
// btschool
|
||||
'btschool' => array(
|
||||
@@ -205,6 +247,8 @@ return array(
|
||||
'cookie' => '',
|
||||
// 如果需要自动辅种,必须配置
|
||||
'passkey' => '',
|
||||
'url_replace' => array(),
|
||||
'url_join' => array(),
|
||||
),
|
||||
// HDSky
|
||||
'hdsky' => array(
|
||||
@@ -212,6 +256,12 @@ return array(
|
||||
'cookie' => '',
|
||||
// 如果需要自动辅种,必须配置
|
||||
'passkey' => '',
|
||||
'limitRule' => array(
|
||||
'count' => 20, // 每次辅种20个
|
||||
'sleep' => 20, // 最少休眠20秒
|
||||
),
|
||||
'url_replace' => array(),
|
||||
'url_join' => array(),
|
||||
),
|
||||
// TorrentCCF
|
||||
'torrentccf' => array(
|
||||
@@ -219,6 +269,8 @@ return array(
|
||||
'cookie' => '',
|
||||
// 如果需要自动辅种,必须配置
|
||||
'passkey' => '',
|
||||
'url_replace' => array(),
|
||||
'url_join' => array(),
|
||||
),
|
||||
// PTMSG
|
||||
'ptmsg' => array(
|
||||
@@ -226,6 +278,8 @@ return array(
|
||||
'cookie' => '',
|
||||
// 如果需要自动辅种,必须配置
|
||||
'passkey' => '',
|
||||
'url_replace' => array(),
|
||||
'url_join' => array(),
|
||||
),
|
||||
// totheglory
|
||||
'ttg' => array(
|
||||
@@ -234,6 +288,8 @@ return array(
|
||||
// 如果需要自动辅种,必须配置
|
||||
'passkey' => '',
|
||||
// 如果需要rss订阅,必须配置
|
||||
'url_replace' => array(),
|
||||
'url_join' => array(),
|
||||
'rss' => '',
|
||||
),
|
||||
// nanyangpt
|
||||
@@ -242,6 +298,8 @@ return array(
|
||||
'cookie' => '',
|
||||
// 如果需要自动辅种,必须配置
|
||||
'passkey' => '',
|
||||
'url_replace' => array(),
|
||||
'url_join' => array(),
|
||||
),
|
||||
// springsunday.net
|
||||
'ssd' => array(
|
||||
@@ -249,6 +307,12 @@ return array(
|
||||
'cookie' => '',
|
||||
// 如果需要自动辅种,必须配置
|
||||
'passkey' => '',
|
||||
'url_replace' => array(),
|
||||
'url_join' => array(),
|
||||
'limitRule' => array(
|
||||
'count' => 20, // 每次辅种20个
|
||||
'sleep' => 15, // 最少休眠15秒
|
||||
),
|
||||
),
|
||||
// yingk
|
||||
'yingk' => array(
|
||||
@@ -256,6 +320,8 @@ return array(
|
||||
'cookie' => '',
|
||||
// 如果需要自动辅种,必须配置
|
||||
'passkey' => '',
|
||||
'url_replace' => array(),
|
||||
'url_join' => array(),
|
||||
),
|
||||
// hdcity
|
||||
'hdcity' => array(
|
||||
@@ -263,6 +329,8 @@ return array(
|
||||
'cookie' => '',
|
||||
// 如果需要自动辅种,必须配置cuhash
|
||||
'passkey' => '',
|
||||
'url_replace' => array(),
|
||||
'url_join' => array(),
|
||||
),
|
||||
// 52pt.site
|
||||
'52pt' => array(
|
||||
@@ -270,6 +338,8 @@ return array(
|
||||
'cookie' => '',
|
||||
// 如果需要自动辅种,必须配置
|
||||
'passkey' => '',
|
||||
'url_replace' => array(),
|
||||
'url_join' => array(),
|
||||
),
|
||||
// brobits
|
||||
'brobits' => array(
|
||||
@@ -277,6 +347,8 @@ return array(
|
||||
'cookie' => '',
|
||||
// 如果需要自动辅种,必须配置
|
||||
'passkey' => '',
|
||||
'url_replace' => array(),
|
||||
'url_join' => array(),
|
||||
),
|
||||
// beitai
|
||||
'beitai' => array(
|
||||
@@ -284,6 +356,8 @@ return array(
|
||||
'cookie' => '',
|
||||
// 如果需要自动辅种,必须配置
|
||||
'passkey' => '',
|
||||
'url_replace' => array(),
|
||||
'url_join' => array(),
|
||||
),
|
||||
// eastgame
|
||||
'eastgame' => array(
|
||||
@@ -291,6 +365,8 @@ return array(
|
||||
'cookie' => '',
|
||||
// 如果需要自动辅种,必须配置
|
||||
'passkey' => '',
|
||||
'url_replace' => array(),
|
||||
'url_join' => array(),
|
||||
),
|
||||
// soulvoice
|
||||
'soulvoice' => array(
|
||||
@@ -298,13 +374,8 @@ return array(
|
||||
'cookie' => '',
|
||||
// 如果需要自动辅种,必须配置
|
||||
'passkey' => '',
|
||||
),
|
||||
// chdbits
|
||||
'chdbits' => array(
|
||||
// 如果需要用下载免费种脚本,须配置(只是自动辅种,可以不配置此项)
|
||||
'cookie' => '',
|
||||
// 如果需要自动辅种,必须配置
|
||||
'passkey' => '',
|
||||
'url_replace' => array(),
|
||||
'url_join' => array(),
|
||||
),
|
||||
// leaguehd
|
||||
'leaguehd' => array(
|
||||
@@ -312,6 +383,8 @@ return array(
|
||||
'cookie' => '',
|
||||
// 如果需要自动辅种,必须配置
|
||||
'passkey' => '',
|
||||
'url_replace' => array(),
|
||||
'url_join' => array(),
|
||||
),
|
||||
// ptsbao
|
||||
'ptsbao' => array(
|
||||
@@ -319,6 +392,8 @@ return array(
|
||||
'cookie' => '',
|
||||
// 如果需要自动辅种,必须配置
|
||||
'passkey' => '',
|
||||
'url_replace' => array(),
|
||||
'url_join' => array(),
|
||||
),
|
||||
// hdchina
|
||||
'hdchina' => array(
|
||||
@@ -326,6 +401,12 @@ return array(
|
||||
'cookie' => '',
|
||||
// 如果需要自动辅种,必须配置
|
||||
'passkey' => '',
|
||||
'url_replace' => array(),
|
||||
'url_join' => array(),
|
||||
'limitRule' => array(
|
||||
'count' => 10, // 每次辅种10个
|
||||
'sleep' => 5, // 最少休眠15秒
|
||||
),
|
||||
),
|
||||
// hdarea
|
||||
'hdarea' => array(
|
||||
@@ -333,6 +414,8 @@ return array(
|
||||
'cookie' => '',
|
||||
// 如果需要自动辅种,必须配置
|
||||
'passkey' => '',
|
||||
'url_replace' => array(),
|
||||
'url_join' => array(),
|
||||
),
|
||||
// hdtime
|
||||
'hdtime' => array(
|
||||
@@ -340,6 +423,8 @@ return array(
|
||||
'cookie' => '',
|
||||
// 如果需要自动辅种,必须配置
|
||||
'passkey' => '',
|
||||
'url_replace' => array(),
|
||||
'url_join' => array(),
|
||||
),
|
||||
// 1ptba
|
||||
'1ptba' => array(
|
||||
@@ -347,6 +432,8 @@ return array(
|
||||
'cookie' => '',
|
||||
// 如果需要自动辅种,必须配置
|
||||
'passkey' => '',
|
||||
'url_replace' => array(),
|
||||
'url_join' => array(),
|
||||
),
|
||||
// hd4fans
|
||||
'hd4fans' => array(
|
||||
@@ -354,6 +441,8 @@ return array(
|
||||
'cookie' => '',
|
||||
// 如果需要自动辅种,必须配置
|
||||
'passkey' => '',
|
||||
'url_replace' => array(),
|
||||
'url_join' => array(),
|
||||
),
|
||||
// hddisk.life
|
||||
'hdbug' => array(
|
||||
@@ -361,6 +450,8 @@ return array(
|
||||
'cookie' => '',
|
||||
// 如果需要自动辅种,必须配置
|
||||
'passkey' => '',
|
||||
'url_replace' => array(),
|
||||
'url_join' => array(),
|
||||
),
|
||||
// opencd皇后
|
||||
'opencd' => array(
|
||||
@@ -368,6 +459,8 @@ return array(
|
||||
'cookie' => '',
|
||||
// 如果需要自动辅种,必须配置
|
||||
'passkey' => '',
|
||||
'url_replace' => array(),
|
||||
'url_join' => array(),
|
||||
),
|
||||
// hdstreet
|
||||
'hdstreet' => array(
|
||||
@@ -375,6 +468,8 @@ return array(
|
||||
'cookie' => '',
|
||||
// 如果需要自动辅种,必须配置
|
||||
'passkey' => '',
|
||||
'url_replace' => array(),
|
||||
'url_join' => array(),
|
||||
),
|
||||
// joyhd
|
||||
'joyhd' => array(
|
||||
@@ -382,6 +477,8 @@ return array(
|
||||
'cookie' => '',
|
||||
// 如果需要自动辅种,必须配置
|
||||
'passkey' => '',
|
||||
'url_replace' => array(),
|
||||
'url_join' => array(),
|
||||
),
|
||||
// dmhy幼儿园
|
||||
'dmhy' => array(
|
||||
@@ -389,6 +486,8 @@ return array(
|
||||
'cookie' => '',
|
||||
// 如果需要自动辅种,必须配置
|
||||
'passkey' => '',
|
||||
'url_replace' => array(),
|
||||
'url_join' => array(),
|
||||
),
|
||||
// hdu
|
||||
'upxin' => array(
|
||||
@@ -396,6 +495,8 @@ return array(
|
||||
'cookie' => '',
|
||||
// 如果需要自动辅种,必须配置
|
||||
'passkey' => '',
|
||||
'url_replace' => array(),
|
||||
'url_join' => array(),
|
||||
),
|
||||
// oshen
|
||||
'oshen' => array(
|
||||
@@ -403,6 +504,8 @@ return array(
|
||||
'cookie' => '',
|
||||
// 如果需要自动辅种,必须配置
|
||||
'passkey' => '',
|
||||
'url_replace' => array(),
|
||||
'url_join' => array(),
|
||||
),
|
||||
// discfan港知堂
|
||||
'discfan' => array(
|
||||
@@ -410,6 +513,8 @@ return array(
|
||||
'cookie' => '',
|
||||
// 如果需要自动辅种,必须配置
|
||||
'passkey' => '',
|
||||
'url_replace' => array(),
|
||||
'url_join' => array(),
|
||||
),
|
||||
// hdzone
|
||||
'hdzone' => array(
|
||||
@@ -417,6 +522,8 @@ return array(
|
||||
'cookie' => '',
|
||||
// 如果需要自动辅种,必须配置
|
||||
'passkey' => '',
|
||||
'url_replace' => array(),
|
||||
'url_join' => array(),
|
||||
),
|
||||
// nicept老师
|
||||
'nicept' => array(
|
||||
@@ -424,6 +531,8 @@ return array(
|
||||
'cookie' => '',
|
||||
// 如果需要自动辅种,必须配置
|
||||
'passkey' => '',
|
||||
'url_replace' => array(),
|
||||
'url_join' => array(),
|
||||
),
|
||||
// hdbd伊甸园
|
||||
'hdbd' => array(
|
||||
@@ -431,6 +540,11 @@ return array(
|
||||
'cookie' => '',
|
||||
// 如果需要自动辅种,必须配置
|
||||
'passkey' => '',
|
||||
'url_replace' => array(),
|
||||
'url_join' => array(
|
||||
//'ipv6=1', // 种子Tracker的IP地址选择 可选:ipv4,ipv6
|
||||
//'https=1',
|
||||
),
|
||||
),
|
||||
// byr北邮
|
||||
'byr' => array(
|
||||
@@ -438,6 +552,8 @@ return array(
|
||||
'cookie' => '',
|
||||
// 如果需要自动辅种,必须配置
|
||||
'passkey' => '',
|
||||
'url_replace' => array(),
|
||||
'url_join' => array(),
|
||||
),
|
||||
// CCFBits
|
||||
'ccfbits' => array(
|
||||
@@ -445,6 +561,8 @@ return array(
|
||||
'cookie' => '',
|
||||
// 如果需要自动辅种,必须配置
|
||||
'passkey' => '',
|
||||
'url_replace' => array(),
|
||||
'url_join' => array(),
|
||||
),
|
||||
// hdbits
|
||||
'hdbits' => array(
|
||||
@@ -452,6 +570,8 @@ return array(
|
||||
'cookie' => '',
|
||||
// 如果需要自动辅种,必须配置
|
||||
'passkey' => '',
|
||||
'url_replace' => array(),
|
||||
'url_join' => array(),
|
||||
),
|
||||
// PTPBD
|
||||
'ptpbd' => array(
|
||||
@@ -459,6 +579,8 @@ return array(
|
||||
'cookie' => '',
|
||||
// 如果需要自动辅种,必须配置
|
||||
'passkey' => '',
|
||||
'url_replace' => array(),
|
||||
'url_join' => array(),
|
||||
),
|
||||
// HD-T
|
||||
'hd-torrents' => array(
|
||||
@@ -466,6 +588,8 @@ return array(
|
||||
'cookie' => '',
|
||||
// 如果需要自动辅种,必须配置
|
||||
'passkey' => '',
|
||||
'url_replace' => array(),
|
||||
'url_join' => array(),
|
||||
),
|
||||
// skyeysnow天雪
|
||||
'skyeysnow' => array(
|
||||
@@ -473,6 +597,8 @@ return array(
|
||||
'cookie' => '',
|
||||
// 如果需要自动辅种,必须配置
|
||||
'passkey' => '',
|
||||
'url_replace' => array(),
|
||||
'url_join' => array(),
|
||||
),
|
||||
// pt.sjtu葡萄
|
||||
'pt' => array(
|
||||
@@ -480,6 +606,12 @@ return array(
|
||||
'cookie' => '',
|
||||
// 如果需要自动辅种,必须配置
|
||||
'passkey' => '',
|
||||
'url_replace' => array(),
|
||||
'url_join' => array(),
|
||||
'limitRule' => array(
|
||||
'count' => 20, // 每次辅种20个
|
||||
'sleep' => 20, // 最少休眠20秒
|
||||
),
|
||||
),
|
||||
// hdroute
|
||||
'hdroute' => array(
|
||||
@@ -487,6 +619,8 @@ return array(
|
||||
'cookie' => '',
|
||||
// 如果需要自动辅种,必须配置
|
||||
'passkey' => '',
|
||||
'url_replace' => array(),
|
||||
'url_join' => array(),
|
||||
),
|
||||
// haidan
|
||||
'haidan' => array(
|
||||
@@ -494,6 +628,8 @@ return array(
|
||||
'cookie' => '',
|
||||
// 如果需要自动辅种,必须配置
|
||||
'passkey' => '',
|
||||
'url_replace' => array(),
|
||||
'url_join' => array(),
|
||||
),
|
||||
// hdfans
|
||||
'hdfans' => array(
|
||||
@@ -501,6 +637,24 @@ return 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(),
|
||||
),
|
||||
// 配置结束,后面的一行不能删除,必须保留!!!
|
||||
);
|
||||
|
112
docker/AMD64/Dockerfile
Normal file
112
docker/AMD64/Dockerfile
Normal 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="0 10 * * 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-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 /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"]
|
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
|
27
docker/Arm64v8/Dockerfile
Normal file
27
docker/Arm64v8/Dockerfile
Normal file
@@ -0,0 +1,27 @@
|
||||
# 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 \
|
||||
&& 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 '2 */6 * * * cd /IYUU && git fetch --all && git reset --hard origin/master' >> /etc/crontabs/root
|
||||
|
||||
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: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
4
docker/Arm64v8/build.sh
Normal 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
|
@@ -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` | 本地目录或文件:容器目录文件,资源挂载到容器。<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
|
@@ -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,15 +50,18 @@ if (file_exists(ROOT_PATH."/config/config.php")) {
|
||||
// 配置(全局变量)
|
||||
$configALL = require_once ROOT_PATH . "/config/config.php";
|
||||
} else {
|
||||
// 第一次会生成
|
||||
@copy(ROOT_PATH . '/config/config.sample.php', ROOT_PATH . '/config/config.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,以免后续版本升级覆盖配置!!!'.PHP_EOL;
|
||||
echo microtime(true).' 请编辑配置文件config.php,以免后续版本升级覆盖配置!!!'.PHP_EOL;
|
||||
$t = 30;
|
||||
do {
|
||||
echo microtime(true)." 请把配置文件改名为config.php,{$t}秒后继续...".PHP_EOL;
|
||||
echo microtime(true)." 请编辑配置文件config.php,{$t}秒后退出...".PHP_EOL;
|
||||
sleep(1);
|
||||
} while (--$t > 0);
|
||||
exit;
|
||||
}
|
||||
echo microtime(true).' 全局配置载入完成!'.PHP_EOL;
|
||||
// 读取支持列表
|
||||
|
2
iyuu.php
2
iyuu.php
@@ -26,6 +26,6 @@
|
||||
require_once __DIR__ . '/init.php';
|
||||
echo '当前脚本路径:'.__FILE__.PHP_EOL;
|
||||
use IYUU\AutoReseed;
|
||||
|
||||
AutoReseed::init();
|
||||
AutoReseed::call();
|
||||
exit(0);
|
||||
|
23
readme.md
23
readme.md
@@ -10,7 +10,9 @@
|
||||
|
||||
第三:您使用IYUU工具造成的一切损失,与IYUU无关。如不接受此条款,请不要使用IYUUAutoReseed,并立刻删除已经下载的源码。
|
||||
|
||||
## 获取脚本,三种方式皆可
|
||||

|
||||
|
||||
## 获取脚本,四种方式皆可
|
||||
|
||||
1. 通过git命令安装
|
||||
|
||||
@@ -23,6 +25,10 @@
|
||||
3. 直接下载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)
|
||||
|
||||
## 功能
|
||||
|
||||
@@ -49,7 +55,7 @@ IYUU自动辅种工具(英文名:IYUUAutoReseed),是一款PHP语言编
|
||||
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!
|
||||
@@ -73,8 +79,21 @@ IYUU自动辅种工具(英文名:IYUUAutoReseed),是一款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插件,实现全自动化辅种,删除种,免费种筛选,签到等。|
|
||||
|
||||
|
||||
## 需求提交/错误反馈
|
||||
|
||||
- QQ群:859882209[2000人.入门群],931954050[1000人.进阶群]
|
||||
- 问答社区:http://wenda.iyuu.cn
|
||||
- 博客:https://www.iyuu.cn/
|
||||
|
39
wiki/公告栏.md
39
wiki/公告栏.md
@@ -1,5 +1,44 @@
|
||||
# 公告栏
|
||||
|
||||
### 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,5 +1,5 @@
|
||||
## 支持用户验证的合作站点:`ourbits`,`hddolby`,`hdhome`,`pthome`
|
||||
截止2020年3月15日13:25:30【文档更新有延迟,最终以gitee、github为准】
|
||||
## 支持用户验证的合作站点:`ourbits`,`hddolby`,`hdhome`,`pthome`,`moecat`
|
||||
截止2020年7月17日20:30:53【文档更新有延迟,最终以gitee、github为准】
|
||||
|
||||
|
||||
----------
|
||||
|
@@ -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
|
||||
|
||||
|
@@ -13,8 +13,7 @@
|
||||
| Google身份验证器(谷歌动态口令) | 开发中 | 2020年2月21日 | |
|
||||
| 自动更新 | 开发中 | 2020年2月21日 | |
|
||||
| WEB页面生成配置 | 开发中 | 2020年2月21日 | |
|
||||
| 种子删除自动同步 | 开发中 | 2020年2月21日 | 2020年5月6日 |
|
||||
| 种子删除自动同步 | 已完成 | 2020年2月21日 | 2020年5月6日 |
|
||||
| 脚本docker容器化(测试版) | 已完成 | 2020年2月21日 | 2020年2月21日 |
|
||||
| 自动配置(简化配置) | 开发中 | 2020年4月10日 | |
|
||||
| 浏览器插件 | 暂未开始 | | |
|
||||
| 合集自动拆包辅种 | 暂未开始 | | |
|
||||
|
@@ -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日
|
||||
|
||||
1. 优化windows的辅种批处理,采用环境变量调用
|
||||
|
Reference in New Issue
Block a user