mirror of
https://gitee.com/ledc/IYUUAutoReseed
synced 2025-08-24 06:54:51 +00:00
优化彩虹岛副标题获取
This commit is contained in:
@@ -167,11 +167,17 @@ class Chdbits implements decodeBase
|
|||||||
$titleTemp = selector::select($titleTemp, '//font');
|
$titleTemp = selector::select($titleTemp, '//font');
|
||||||
}
|
}
|
||||||
$title = selector::remove($titleTemp, "//div");
|
$title = selector::remove($titleTemp, "//div");
|
||||||
|
// 过滤 码率
|
||||||
|
if ( strpos($title,'</a>') != false ) {
|
||||||
|
$title = selector::remove($title, "//a");
|
||||||
|
}
|
||||||
|
// 过滤特殊的空格
|
||||||
$title = substr($title, 4);
|
$title = substr($title, 4);
|
||||||
|
// 移除普通空格
|
||||||
$title = str_replace(" ",'',$title);
|
$title = str_replace(" ",'',$title);
|
||||||
$span = array();
|
$span = array();
|
||||||
$titleSpan = '';
|
$titleSpan = '';
|
||||||
$span = selector::select($titleTemp, '//div');
|
$span = selector::select($titleTemp, '//div');
|
||||||
if(!empty($span)){
|
if(!empty($span)){
|
||||||
if(is_array($span)){
|
if(is_array($span)){
|
||||||
foreach ( $span as $vv ){
|
foreach ( $span as $vv ){
|
||||||
@@ -187,7 +193,6 @@ class Chdbits implements decodeBase
|
|||||||
// 精确适配标签 end
|
// 精确适配标签 end
|
||||||
$arr['title'] = $titleSpan . $title;
|
$arr['title'] = $titleSpan . $title;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 组合返回数组
|
// 组合返回数组
|
||||||
self::$TorrentList[$k]['id'] = $arr['id'];
|
self::$TorrentList[$k]['id'] = $arr['id'];
|
||||||
self::$TorrentList[$k]['h1'] = $arr['h1'];
|
self::$TorrentList[$k]['h1'] = $arr['h1'];
|
||||||
|
Reference in New Issue
Block a user