|
|
|
@ -414,7 +414,8 @@ class AutoReseed |
|
|
|
|
/** |
|
|
|
|
* IYUUAutoReseed辅种 |
|
|
|
|
*/ |
|
|
|
|
public static function reseed($hashArray = array()){ |
|
|
|
|
public static function reseed($hashArray = array()) |
|
|
|
|
{ |
|
|
|
|
global $configALL; |
|
|
|
|
$sites = array(); |
|
|
|
|
// 前置过滤 |
|
|
|
@ -630,7 +631,8 @@ class AutoReseed |
|
|
|
|
/** |
|
|
|
|
* IYUUAutoReseed做种客户端转移 |
|
|
|
|
*/ |
|
|
|
|
public static function move($hashArray = array()){ |
|
|
|
|
public static function move($hashArray = array()) |
|
|
|
|
{ |
|
|
|
|
global $configALL; |
|
|
|
|
$sites = array(); |
|
|
|
|
// 前置过滤:2020年1月26日15:52:41 |
|
|
|
@ -823,11 +825,14 @@ class AutoReseed |
|
|
|
|
/** |
|
|
|
|
* 过滤已转移的种子hash |
|
|
|
|
*/ |
|
|
|
|
public static function hashFilter(&$hash = array()){ |
|
|
|
|
public static function hashFilter(&$hash = array()) |
|
|
|
|
{ |
|
|
|
|
foreach ($hash as $client => $json) { |
|
|
|
|
$data = array(); |
|
|
|
|
$data = json_decode($json, true); |
|
|
|
|
if (empty($data)) continue; |
|
|
|
|
if (empty($data)) { |
|
|
|
|
continue; |
|
|
|
|
} |
|
|
|
|
foreach ($data as $key => $info_hash) { |
|
|
|
|
if (is_file(self::$cacheMove . $info_hash.'.txt')) { |
|
|
|
|
echo '-------当前种子上次已成功转移,前置过滤已跳过! ' .PHP_EOL.PHP_EOL; |
|
|
|
@ -882,7 +887,8 @@ class AutoReseed |
|
|
|
|
/** |
|
|
|
|
* 获取站点种子的URL |
|
|
|
|
*/ |
|
|
|
|
public static function getTorrentUrl($site = '',$_url = ''){ |
|
|
|
|
public static function getTorrentUrl($site = '', $_url = '') |
|
|
|
|
{ |
|
|
|
|
global $configALL; |
|
|
|
|
switch ($site) { |
|
|
|
|
case 'ttg': |
|
|
|
|