mirror of
https://gitee.com/ledc/IYUUAutoReseed
synced 2025-08-24 15:04:50 +00:00
Compare commits
5 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
fa60001758 | ||
|
80ca5e9690 | ||
|
550e53d5e0 | ||
|
ccd0acd7f6 | ||
|
b788ef1245 |
@@ -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);
|
||||
|
@@ -456,4 +456,4 @@ function ShowTableSites($dir = 'Protocols', $filter = array())
|
||||
function isWin()
|
||||
{
|
||||
return (DIRECTORY_SEPARATOR == '\\') ? true : false;
|
||||
}
|
||||
}
|
||||
|
@@ -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' => '',
|
||||
),
|
||||
|
||||
// 配置文件结束
|
||||
);
|
||||
|
@@ -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
5
git自动更新.cmd
Normal file
@@ -0,0 +1,5 @@
|
||||
@echo off
|
||||
chcp 65001
|
||||
git fetch --all
|
||||
git reset --hard origin/master
|
||||
git pull
|
@@ -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!
|
||||
|
10
wiki/更新历史.md
10
wiki/更新历史.md
@@ -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
|
||||
|
Reference in New Issue
Block a user