新增站点hdzone

This commit is contained in:
iyuu.cn
2019-12-28 21:16:10 +08:00
parent d9aa0e7514
commit 6b67bc90bc
4 changed files with 210 additions and 3 deletions

View File

@@ -151,7 +151,7 @@ class XXXX implements decodeBase
// 获取副标题(倒序算法)
// 偏移量
$h2StrStart = '<br />';
$h2StrEnd = '<td width="80" class="embedded"';
$h2StrEnd = '</td><td width="20" class="embedded"';
$h2_endOffset = strpos($v,$h2StrEnd);
$temp = substr($v, 0, $h2_endOffset);
$h2_offset = strrpos($temp,$h2StrStart);
@@ -161,10 +161,10 @@ class XXXX implements decodeBase
$h2_len = strlen($temp) - $h2_offset - strlen($h2StrStart);
//存在副标题
$arr['title'] = substr($temp, $h2_offset + strlen($h2StrStart), $h2_len);
$arr['title'] = str_replace("\n","",$arr['title']);
#$arr['title'] = str_replace("\n","",$arr['title']);
// 第二次过滤
if ( strpos($arr['title'],'</td>') != false ) {
$arr['title'] = str_replace('</td>',"",$arr['title']);
#$arr['title'] = str_replace('</td>',"",$arr['title']);
}
}