Compare commits

..

6 Commits

Author SHA1 Message Date
iyuu.cn
6216f8d5f3 更新下载免费种api 2020-01-14 13:10:48 +08:00
iyuu.cn
852f7672cf 完善代码注释 2020-01-14 12:05:32 +08:00
iyuu.cn
348adfdcea 优化下载免费种命令 2020-01-14 12:04:54 +08:00
iyuu.cn
3b8cbbd339 优化文件结构,删除冗余文件。 2020-01-14 12:04:15 +08:00
iyuu.cn
17b213829f 新增开发计划 2020-01-14 00:42:58 +08:00
iyuu.cn
98d01c34ff 更新hdbug域名 2020-01-14 00:42:46 +08:00
49 changed files with 69 additions and 171 deletions

View File

@@ -16,7 +16,7 @@ class hdbug implements decodeBase
* 域名
* @var string
*/
const domain = 'hdbug.best';
const domain = 'hddisk.life';
const HOST = 'https://'.self::domain.'/';
// 下载种子的请求类型
const METHOD = 'GET';

View File

@@ -1,3 +0,0 @@
<?php
require_once __DIR__ . '/init.php';
Beitai::run();

View File

@@ -1,3 +0,0 @@
<?php
require_once __DIR__ . '/init.php';
Brobits::run();

View File

@@ -1,3 +0,0 @@
<?php
require_once __DIR__ . '/init.php';
Btschool::run();

View File

@@ -1,3 +0,0 @@
<?php
require_once __DIR__ . '/init.php';
Chdbits::run();

View File

@@ -1,3 +0,0 @@
<?php
require_once __DIR__ . '/init.php';
cnscg::run();

View File

@@ -1,3 +0,0 @@
<?php
require_once __DIR__ . '/init.php';
discfan::run();

View File

@@ -1,3 +0,0 @@
<?php
require_once __DIR__ . '/init.php';
dmhy::run();

View File

@@ -3,7 +3,7 @@
* 作用添加聆音阅听专区30页小包方便大家赚魔力
* 使用方法:放入/app/ 目录下即可。
*/
require_once __DIR__ . '/init.php';
require_once __DIR__ . '/../init.php';
$start = 0;
$end = 30;
$url = 'live.php?inclbookmarked=0&incldead=1&spstate=0&&sort=5&type=asc&page={}';

3
app/download/sample.php Normal file
View File

@@ -0,0 +1,3 @@
<?php
require_once __DIR__ . '/../init.php';
Mteam::run();

View File

@@ -1,3 +0,0 @@
<?php
require_once __DIR__ . '/init.php';
Eastgame::run();

View File

@@ -1,3 +0,0 @@
<?php
require_once __DIR__ . '/init.php';
hd4fans::run();

View File

@@ -1,3 +0,0 @@
<?php
require_once __DIR__ . '/init.php';
Hdarea::run();

View File

@@ -1,3 +0,0 @@
<?php
require_once __DIR__ . '/init.php';
hdbug::run();

View File

@@ -1,3 +0,0 @@
<?php
require_once __DIR__ . '/init.php';
hdchina::run();

View File

@@ -1,3 +0,0 @@
<?php
require_once __DIR__ . '/init.php';
hdcity::run();

View File

@@ -1,3 +0,0 @@
<?php
require_once __DIR__ . '/init.php';
Hddolby::run();

View File

@@ -1,3 +0,0 @@
<?php
require_once __DIR__ . '/init.php';
Hdhome::run();

View File

@@ -1,3 +0,0 @@
<?php
require_once __DIR__ . '/init.php';
Hdsky::run();

View File

@@ -1,3 +0,0 @@
<?php
require_once __DIR__ . '/init.php';
hdstreet::run();

View File

@@ -1,3 +0,0 @@
<?php
require_once __DIR__ . '/init.php';
Hdtime::run();

View File

@@ -1,3 +0,0 @@
<?php
require_once __DIR__ . '/init.php';
hdzone::run();

View File

@@ -1,3 +0,0 @@
<?php
require_once __DIR__ . '/init.php';
joyhd::run();

View File

@@ -1,3 +0,0 @@
<?php
require_once __DIR__ . '/init.php';
Keepfrds::run();

View File

@@ -1,3 +0,0 @@
<?php
require_once __DIR__ . '/init.php';
Leaguehd::run();

View File

@@ -1,3 +0,0 @@
<?php
require_once __DIR__ . '/init.php';
Mteam::run();

View File

@@ -1,3 +0,0 @@
<?php
require_once __DIR__ . '/init.php';
Moecat::run();

View File

@@ -1,3 +0,0 @@
<?php
require_once __DIR__ . '/init.php';
Nanyangpt::run();

View File

@@ -1,3 +0,0 @@
<?php
require_once __DIR__ . '/init.php';
nicept::run();

View File

@@ -1,3 +0,0 @@
<?php
require_once __DIR__ . '/init.php';
opencd::run();

View File

@@ -1,3 +0,0 @@
<?php
require_once __DIR__ . '/init.php';
oshen::run();

View File

@@ -1,3 +0,0 @@
<?php
require_once __DIR__ . '/init.php';
Ourbits::run();

View File

@@ -1,3 +0,0 @@
<?php
require_once __DIR__ . '/init.php';
ptba::run();

View File

@@ -1,3 +0,0 @@
<?php
require_once __DIR__ . '/init.php';
Pterclub::run();

View File

@@ -1,3 +0,0 @@
<?php
require_once __DIR__ . '/init.php';
Pthome::run();

View File

@@ -1,3 +0,0 @@
<?php
require_once __DIR__ . '/init.php';
Ptmsg::run();

View File

@@ -1,3 +0,0 @@
<?php
require_once __DIR__ . '/init.php';
Ptsbao::run();

View File

@@ -1,3 +0,0 @@
<?php
require_once __DIR__ . '/init.php';
Site52pt::run();

View File

@@ -1,3 +0,0 @@
<?php
require_once __DIR__ . '/init.php';
soulvoice::run();

View File

@@ -1,3 +0,0 @@
<?php
require_once __DIR__ . '/init.php';
Ssd::run();

View File

@@ -1,3 +0,0 @@
<?php
require_once __DIR__ . '/init.php';
Tjupt::run();

View File

@@ -1,3 +0,0 @@
<?php
require_once __DIR__ . '/init.php';
Torrentccf::run();

View File

@@ -1,3 +0,0 @@
<?php
require_once __DIR__ . '/init.php';
Totheglory::run();

View File

@@ -1,3 +0,0 @@
<?php
require_once __DIR__ . '/init.php';
upxin::run();

View File

@@ -1,3 +0,0 @@
<?php
require_once __DIR__ . '/init.php';
Yingk::run();

30
download.php Normal file
View File

@@ -0,0 +1,30 @@
<?php
require_once __DIR__ . '/app/init.php';
global $argv;
if(count($argv) < 2){
echo "--执行下载命令时,缺少站点参数,请查阅“常见问题”,获取站点参数!!\n\n";
exit(1);
}
$start_file = $argv[0];
$command = strtolower(trim($argv[1]));
$command2 = isset($argv[2]) ? $argv[2] : '';
if(is_file(APP_PATH.DS.'Protocols'.DS.$command.'.php')){
switch ($command) {
case 'start':
break;
case 'status':
break;
case 'stop':
break;
case 'restart':
break;
case 'reload':
break;
default :
$command::run();
break;
}
}else{
echo '解码文件:'.APP_PATH.DS.'Protocols'.DS.$command.'.php'." 不存在 \n\n";
exit(1);
}

View File

@@ -1,6 +1,6 @@
<?php
/**
* IYUU自动辅种脚本
* IYUUAutoReseed自动辅种
*/
use Curl\Curl;
require_once __DIR__ . '/app/init.php';
@@ -13,7 +13,7 @@ if ( iyuuAutoReseed::$move != null ) {
iyuuAutoReseed::call($hashArray);
iyuuAutoReseed::wechatMessage();
/**
* iyuu自动辅种类
* IYUUAutoReseed自动辅种类
*/
class iyuuAutoReseed
{
@@ -22,23 +22,31 @@ class iyuuAutoReseed
* @var string
*/
const VER = '0.1.0';
// RPC连接池
/**
* RPC连接池
* @var array
*/
public static $links = array();
/**
* 客户端配置
* @var array
*/
public static $clients = array();
/**
* 不辅种的站点 'ourbits','hdchina'
* @var array
*/
public static $noReseed = [];
/**
* 缓存路径
* @var string
*/
public static $cacheDir = TORRENT_PATH.'cache'.DS;
public static $cacheHash = TORRENT_PATH.'cachehash'.DS;
/**
* API接口配置
* @var string
* @var array
*/
public static $apiUrl = 'http://iyuu.cn:2122';
public static $endpoints = array(
@@ -49,14 +57,17 @@ class iyuuAutoReseed
);
/**
* 退出状态码
* @var int
*/
public static $ExitCode = 0;
/**
* 客户端转移做种 状态码[请把transmission配置为第一个客户端]
* @var array
*/
public static $move = null;
/**
* 微信消息体
* @var array
*/
public static $wechatMsg = array(
'hashCount' => 0, // 提交给服务器的hash总数
@@ -70,10 +81,10 @@ class iyuuAutoReseed
);
/**
* 初始化
* @return void
*/
public static function init(){
global $configALL;
self::$clients = isset($configALL['default']['clients']) && $configALL['default']['clients'] ? $configALL['default']['clients'] : array();
echo "程序正在初始化运行参数... \n";
// 递归删除上次历史记录
@@ -90,7 +101,7 @@ class iyuuAutoReseed
* 连接远端RPC服务器
*
* @param string
* @return array
* @return bool
*/
public static function links()
{
@@ -135,6 +146,7 @@ class iyuuAutoReseed
}
/**
* 从客户端获取种子的哈希列表
* @var array
*/
public static function get(){
$hashArray = array();

View File

@@ -3,45 +3,15 @@ php命令与脚本路径之间是有个空格请注意请注意请注
## 自动辅种命令:
php ./iyuu.cn.php
`php ./iyuu.cn.php`
## 下载免费种命令:
- php ./app/beitai.php
- php ./app/brobits.php
- php ./app/btschool.php
- php ./app/chdbits.php
- php ./app/dmhy.php
- php ./app/eastgame.php
- php ./app/hd4fans.php
- php ./app/hdarea.php
- php ./app/hdbug.php
- php ./app/hddolby.php
- php ./app/hdhome.php
- php ./app/hdsky.php
- php ./app/hdstreet.php
- php ./app/hdtime.php
- php ./app/joyhd.php
- php ./app/keepfrds.php
- php ./app/leaguehd.php
- php ./app/moecat.php
- php ./app/m-team.php
- php ./app/nanyangpt.php
- php ./app/opencd.php
- php ./app/ourbits.php
- php ./app/ptba.php
- php ./app/pterclub.php
- php ./app/pthome.php
- php ./app/ptmsg.php
- php ./app/ptsbao.php
- php ./app/site52pt.php
- php ./app/soulvoice.php
- php ./app/ssd.php
- php ./app/tjupt.php
- php ./app/torrentccf.php
- php ./app/totheglory.php
- php ./app/upxin.php
- php ./app/yingk.php
`php ./download.php 站点参数`
### 下载免费种支持的站点:
### 【重要说明:实际路径,以你实际的为准,切勿生搬硬套!】

View File

@@ -11,7 +11,16 @@
| 自动辅种结束微信通知 | 已完成 | 2019年12月25日 | 2019年12月27日 |
| 合集自动拆包辅种 | 暂未开始 | | |
| 兼容Reseed辅种 | 暂未开始 | | |
| 做种客户端间转移 | 正在开发 | 2019年12月25日 | |
| 做种客户端间转移 | 已完成 | 2019年12月25日 | 2020年1月14日 |
| WEB页面 | 暂未开始 | | |
| 手动辅种文件,按目录分组 | 正在开发 | 2019年12月26日 | |
| 手动辅种按目录分组 | 已完成 | 2019年12月26日 | 2020年1月14日 |
| 自动下载 | 待完善 | | |
| 自动辅种 | 已完成 | | |
| 自动删除 | 暂未开始 | | |
| 自动转载 | 暂未开始 | | |
| 自动转移客户端 | 暂未开始 | | |
| 自动认领 | 暂未开始 | | |
| 智能管理 | 暂未开始 | | |
| 智能任务 | 暂未开始 | | |
| | | | |