mirror of
https://gitee.com/ledc/IYUUAutoReseed
synced 2025-08-24 06:54:51 +00:00
修复瓷器主标题获取错误的bug
This commit is contained in:
@@ -92,11 +92,12 @@ class Hdchina implements decodeBase
|
|||||||
self::init();
|
self::init();
|
||||||
Rpc::init(self::SITE, self::METHOD);
|
Rpc::init(self::SITE, self::METHOD);
|
||||||
$html = self::get($url);
|
$html = self::get($url);
|
||||||
|
p($html);
|
||||||
if ( $html === null ) {
|
if ( $html === null ) {
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
$data = self::decode($html);
|
$data = self::decode($html);
|
||||||
#p($data);exit;
|
p($data);exit;
|
||||||
Rpc::call($data);
|
Rpc::call($data);
|
||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
@@ -152,10 +153,8 @@ class Hdchina implements decodeBase
|
|||||||
$arr['id'] = substr($id,$idStrLen);
|
$arr['id'] = substr($id,$idStrLen);
|
||||||
|
|
||||||
// 获取主标题
|
// 获取主标题
|
||||||
// 偏移量
|
$arr['h1'] = selector::select($v, '//h3');
|
||||||
$h1_offset = strpos($v, '<a title="') + strlen('<a title="');
|
$arr['h1'] = selector::select($arr['h1'], '//a');
|
||||||
$h1_len = strpos($v, '" href="details.php?id=') - $h1_offset;
|
|
||||||
$arr['h1'] = substr($v, $h1_offset, $h1_len);
|
|
||||||
|
|
||||||
// 获取副标题(倒序算法)
|
// 获取副标题(倒序算法)
|
||||||
// 偏移量
|
// 偏移量
|
||||||
|
3
app/hdchina.php
Normal file
3
app/hdchina.php
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
<?php
|
||||||
|
require_once __DIR__ . '/init.php';
|
||||||
|
hdchina::run();
|
@@ -369,6 +369,7 @@ class iyuuAutoReseed
|
|||||||
echo "clients_".$k."没有查询到可辅种数据 \n\n";
|
echo "clients_".$k."没有查询到可辅种数据 \n\n";
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
#p($infohash_Dir);
|
||||||
// 当前客户端辅种数据
|
// 当前客户端辅种数据
|
||||||
$reseed = $resArray['clients_'.$k];
|
$reseed = $resArray['clients_'.$k];
|
||||||
foreach ($reseed as $info_hash => $vv) {
|
foreach ($reseed as $info_hash => $vv) {
|
||||||
|
Reference in New Issue
Block a user