Compare commits

...

5 Commits

Author SHA1 Message Date
iyuu.cn
fa60001758 修改示例配置的注释,以免混淆 2020-02-26 21:46:36 +08:00
iyuu.cn
80ca5e9690 添加git自动更新命令 2020-02-26 17:33:45 +08:00
iyuu.cn
550e53d5e0 转移种子,设置自动开始开关 2020-02-26 16:07:51 +08:00
iyuu.cn
ccd0acd7f6 添加更新历史 2020-02-26 16:07:36 +08:00
iyuu.cn
b788ef1245 新增站点:葡萄pt 2020-02-25 23:30:15 +08:00
7 changed files with 32 additions and 6 deletions

View File

@@ -185,7 +185,7 @@ class AutoReseed
// 判断
switch ($type) {
case 'transmission':
$extra_options['paused'] = true;
$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添加下载任务
} else {
@@ -213,7 +213,7 @@ class AutoReseed
break;
case 'qBittorrent':
$extra_options['autoTMM'] = 'false'; //关闭自动种子管理
$extra_options['paused'] = 'true';
$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添加下载任务
} else {
@@ -599,10 +599,13 @@ class AutoReseed
$rpcKey = self::$move[0];
$type = self::$links[$rpcKey]['type'];
$extra_options = array();
$extra_options['paused'] = isset($configALL['default']['move']['paused']) && $configALL['default']['move']['paused'] ? true : false;
if ($type == 'qBittorrent') {
if (isset($configALL['default']['move']['skip_check']) && $configALL['default']['move']['skip_check'] === 1) {
$extra_options['skip_checking'] = "true"; //转移成功,跳校验
}
} else {
}
// 添加转移任务成功返回true
$ret = self::add(self::$move[0], $torrent, $downloadDir, $extra_options);

View File

@@ -456,4 +456,4 @@ function ShowTableSites($dir = 'Protocols', $filter = array())
function isWin()
{
return (DIRECTORY_SEPARATOR == '\\') ? true : false;
}
}

View File

@@ -56,6 +56,7 @@ return array(
// 当前路径 => 目标路径
'/downloads' => '/volume1',
),
'paused' => 0, //转移成功0开始1暂停
'skip_check' => 0, //转移成功,跳校验
'delete_torrent' => 0, //转移成功,删除当前做种
),
@@ -133,7 +134,7 @@ return array(
'cookie' => '',
// 如果需要自动辅种,必须配置
'passkey' => '',
'id' => 0, // 用户ID
'id' => 0, // 用户ID(不是用户名)
'workingMode' => 0,
'watch' => '/root/downloads',
'filter' => array(
@@ -462,6 +463,13 @@ return array(
// 如果需要自动辅种,必须配置
'passkey' => '',
),
// pt.sjtu 序号51 葡萄
'pt' => array(
// 如果需要用下载免费种脚本,须配置(只是自动辅种,可以不配置此项)
'cookie' => '',
// 如果需要自动辅种,必须配置
'passkey' => '',
),
// 配置文件结束
);

View File

@@ -6,4 +6,4 @@ unzip -o ./vendor.zip -d /root/IYUUAutoReseed
rm ./IYUUAutoReseed.zip
rm ./vendor.zip
docker build -t iyuu:latest .
docker run -it -v /root/IYUUAutoReseed:/var/www -p 8510:9000 --network bridge --name IYUUAutoReseed --restart always -d iyuu:latest
docker run -it -v /root/IYUUAutoReseed:/var/www -p 8510:9000 --network bridge --name IYUUAutoReseed --restart always -d iyuu:latest

5
git自动更新.cmd Normal file
View File

@@ -0,0 +1,5 @@
@echo off
chcp 65001
git fetch --all
git reset --hard origin/master
git pull

View File

@@ -29,7 +29,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、天雪。
学校、杜比、家园、天空、朋友、馒头、萌猫、我堡、猫站、铂金家、烧包、北洋、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、天雪、葡萄
## 运行环境
具备PHP运行环境的所有平台例如Linux、Windows、MacOS

View File

@@ -1,3 +1,13 @@
### 2020年2月26日
1. 新增葡萄pt
2. 升级docker制作脚本每次制作都是最新版。
3. 优化过滤transmission连接URL兼容性修复网址后有斜杠无法连接的问题
4. 发布包到composer支持composer安装
5. 加入git自动更新脚本
6. 优化提高Windows平台转移做种客户端的兼容性
7. 更新文档、新增支持站点天雪
### 2020年2月21日
发行版v1.5.0