Compare commits

..

6 Commits

Author SHA1 Message Date
iyuu.cn
13b176c4a1 更新readme.md 2020-08-11 19:18:39 +08:00
iyuu.cn
afca458acc 更改转移参数,默认暂停 2020-08-11 19:17:45 +08:00
iyuu.cn
b8b05ff3bf 新增辅种站点:龙之家dragonhd 2020-08-11 18:16:16 +08:00
iyuu.cn
d402d30aac 更改定时任务时间 2020-08-07 17:47:13 +08:00
iyuu.cn
11c976d2c0 增强检查,避免空参数使用backup.sh时,造成问题。 2020-08-06 23:04:33 +08:00
iyuu.cn
630dc3af92 优先检查passkey,排除用户没有的站点 2020-08-06 14:36:04 +08:00
5 changed files with 25 additions and 12 deletions

View File

@@ -18,7 +18,7 @@ ARG app_env=prod
ENV APP_ENV=${app_env:-"prod"} \
TIMEZONE=${timezone:-"Asia/Shanghai"} \
cron="0 10 * * 0"
cron="8 11 * * 0"
##
# ---------- building ----------

View File

@@ -13,7 +13,7 @@ use IYUU\Library\Table;
class AutoReseed
{
// 版本号
const VER = '1.10.5';
const VER = '1.10.6';
// RPC连接
private static $links = [];
// 客户端配置
@@ -703,13 +703,7 @@ class AutoReseed
$info_hash = $torrent['info_hash'];
$siteName = self::$sites[$sid]['site'];
// cookie检测
if (in_array($siteName, self::$cookieCheck) && empty($configALL[$siteName]['cookie'])) {
echo '-------因当前' .$siteName. '站点未设置cookie已跳过' .PHP_EOL.PHP_EOL;
self::$wechatMsg['reseedSkip']++;
return false;
}
// passkey检测
// passkey检测 [优先检查passkey排除用户没有的站点]
if (empty($configALL[$siteName]) || empty($configALL[$siteName]['passkey'])) {
//echo '-------因当前' .$siteName. "站点未设置passkey已跳过".PHP_EOL.PHP_EOL;
self::$wechatMsg['reseedSkip']++;
@@ -717,6 +711,12 @@ class AutoReseed
} 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;

View File

@@ -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
# 脚本当前目录

View File

@@ -45,7 +45,7 @@ return array(
'host' => 'http://127.0.0.1:8083',
'username' => 'admin',
'password' => '',
'root_folder'=> 1, // 0不创建根目录1创建根目录
'root_folder'=> 1, // 0不创建根目录1创建根目录(下载器默认1)
'BT_backup' => '/BT_backup', // 移动做种必须配置Linux搜索方法find / -name BT_backup
'move' => 0, // 0不移动1移动并辅种2移动且只在当前客户端辅种
),
@@ -61,7 +61,7 @@ return array(
),
'path_filter'=> array(), //转移过滤器:不转移此路径内文件
'path_selector' => array(), //转移选择器:只转移此路径内文件(为空时,全转移) 【优先级:过滤器 选择器】
'paused' => 0, //转移成功自动开始任务0开始1暂停
'paused' => 1, //转移成功自动开始任务0开始1暂停
'skip_check' => 0, //转移成功跳校验0不跳、1跳校验
'delete_torrent' => 0, //转移成功删除当前做种0不删除、1删除
),
@@ -639,5 +639,12 @@ return array(
'url_replace' => array(),
'url_join' => array(),
),
// dragonhd
'dragonhd' => array(
// 如果需要用下载免费种脚本,须配置(只是自动辅种,可以不配置此项)
'cookie' => '',
// 如果需要自动辅种,必须配置
'passkey' => '',
),
// 配置结束,后面的一行不能删除,必须保留!!!
);

View File

@@ -55,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、龙之家
## 运行环境
具备PHP运行环境的所有平台例如Linux、Windows、MacOS