mirror of
https://gitee.com/ledc/IYUUAutoReseed
synced 2025-08-25 23:44:50 +00:00
Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
44f5b82650 | ||
|
f5a33843e6 | ||
|
7428144aa8 | ||
|
cc325dc128 |
@@ -1,2 +0,0 @@
|
|||||||
@echo off
|
|
||||||
composer create-project ledccn/iyuuautoreseed:dev-master
|
|
@@ -1,5 +0,0 @@
|
|||||||
@echo off
|
|
||||||
chcp 65001
|
|
||||||
git clone https://gitee.com/ledc/IYUUAutoReseed.git
|
|
||||||
cd IYUUAutoReseed
|
|
||||||
php ./iyuu.php
|
|
@@ -13,7 +13,7 @@ use IYUU\Library\Table;
|
|||||||
class AutoReseed
|
class AutoReseed
|
||||||
{
|
{
|
||||||
// 版本号
|
// 版本号
|
||||||
const VER = '1.8.2';
|
const VER = '1.8.4';
|
||||||
// RPC连接
|
// RPC连接
|
||||||
private static $links = [];
|
private static $links = [];
|
||||||
// 客户端配置
|
// 客户端配置
|
||||||
@@ -416,16 +416,6 @@ class AutoReseed
|
|||||||
$reseedPass = false;
|
$reseedPass = false;
|
||||||
// 特殊站点:种子元数据推送给下载器
|
// 特殊站点:种子元数据推送给下载器
|
||||||
switch ($siteName) {
|
switch ($siteName) {
|
||||||
case 'ssd':
|
|
||||||
// 辅种计数器
|
|
||||||
if ( isset($configALL[$siteName]['count']) ) {
|
|
||||||
if ( $configALL[$siteName]['count'] > 10) {
|
|
||||||
$configALL[$siteName]['limit'] = 1;
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
$configALL[$siteName]['count'] = 0;
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
case 'hdchina':
|
case 'hdchina':
|
||||||
$cookie = isset($configALL[$siteName]['cookie']) ? $configALL[$siteName]['cookie'] : '';
|
$cookie = isset($configALL[$siteName]['cookie']) ? $configALL[$siteName]['cookie'] : '';
|
||||||
$userAgent = $configALL['default']['userAgent'];
|
$userAgent = $configALL['default']['userAgent'];
|
||||||
@@ -539,12 +529,6 @@ class AutoReseed
|
|||||||
case 'hdcity':
|
case 'hdcity':
|
||||||
$url = $_url;
|
$url = $_url;
|
||||||
break;
|
break;
|
||||||
case 'ssd':
|
|
||||||
// 辅种计数器
|
|
||||||
if ($ret) {
|
|
||||||
$configALL[$siteName]['count']++;
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@@ -495,6 +495,12 @@ return array(
|
|||||||
// 如果需要自动辅种,必须配置
|
// 如果需要自动辅种,必须配置
|
||||||
'passkey' => '',
|
'passkey' => '',
|
||||||
),
|
),
|
||||||
|
// hdfans
|
||||||
|
'hdfans' => array(
|
||||||
|
// 如果需要用下载免费种脚本,须配置(只是自动辅种,可以不配置此项)
|
||||||
|
'cookie' => '',
|
||||||
|
// 如果需要自动辅种,必须配置
|
||||||
|
'passkey' => '',
|
||||||
|
),
|
||||||
// 配置结束,后面的一行不能删除,必须保留!!!
|
// 配置结束,后面的一行不能删除,必须保留!!!
|
||||||
);
|
);
|
||||||
|
Reference in New Issue
Block a user