Compare commits

..

8 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
iyuu.cn
17e9a494ee 升级docker制作脚本,每次制作都是最新版。 2020-02-25 21:03:54 +08:00
iyuu.cn
0ccc4f6342 优化过滤transmission连接URL兼容性(修复网址后有斜杠,无法连接的问题) 2020-02-24 14:47:36 +08:00
iyuu.cn
93208b3dc3 从composer创建工程 2020-02-23 19:49:21 +08:00
11 changed files with 42 additions and 8 deletions

View File

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

View File

@@ -133,7 +133,7 @@ class transmission extends AbstractClient
*/ */
public function __construct($url = 'http://127.0.0.1:9091/transmission/rpc', $username = null, $password = null) public function __construct($url = 'http://127.0.0.1:9091/transmission/rpc', $username = null, $password = null)
{ {
$this->url = $url; $this->url = rtrim($url, '/');
$this->username = $username; $this->username = $username;
$this->password = $password; $this->password = $password;
} }

View File

@@ -1,6 +1,7 @@
{ {
"name": "ledccn/iyuuautoreseed", "name": "ledccn/iyuuautoreseed",
"description": "IYUU自动辅种工具目前能对国内大部分的PT站点自动辅种支持下载器集群支持多盘位支持多下载目录支持远程连接等。", "description": "IYUU自动辅种工具目前能对国内大部分的PT站点自动辅种支持下载器集群支持多盘位支持多下载目录支持远程连接等。",
"type": "project",
"keywords": ["iyuu", "reseed"], "keywords": ["iyuu", "reseed"],
"homepage": "https://github.com/ledccn/IYUUAutoReseed", "homepage": "https://github.com/ledccn/IYUUAutoReseed",
"authors": [ "authors": [

View File

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

View File

@@ -1,6 +1,9 @@
#!/bin/sh #!/bin/sh
curl -o ./IYUUAutoReseed.zip http://api.iyuu.cn/IYUUAutoReseed.zip wget -c https://gitee.com/ledc/IYUUAutoReseed/repository/archive/master.zip -O IYUUAutoReseed.zip
wget -c http://api.iyuu.cn/uploads/vendor.zip -O vendor.zip
unzip -o ./IYUUAutoReseed.zip -d /root unzip -o ./IYUUAutoReseed.zip -d /root
unzip -o ./vendor.zip -d /root/IYUUAutoReseed
rm ./IYUUAutoReseed.zip rm ./IYUUAutoReseed.zip
rm ./vendor.zip
docker build -t iyuu:latest . 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

View File

@@ -1,2 +1,3 @@
#!/bin/sh #!/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 docker exec -it IYUUAutoReseed php iyuu.php

3
docker/task.sh Normal file
View File

@@ -0,0 +1,3 @@
#!/bin/sh
export PATH=$PATH:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/root/bin
docker exec IYUUAutoReseed php iyuu.php

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 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 具备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日 ### 2020年2月21日
发行版v1.5.0 发行版v1.5.0