海洋cms资源库采集时备注、分集名称和播放来源增加过滤

1、备注
编辑 /include/collection.class.php 文件,找到:

$v_data['v_note'] = (String)$video->note;//影片备注 

在下方插入:

$v_data['v_note'] = str_replace(array('1024','高清','中字','国语','版','1280','中英双字','|','原声','粤语','英语','韩语','超清','无字'),'',$v_data['v_note']); 

2、分集名称
编辑 /include/collection.class.php 文件,找到:

$v_data['v_playdata'] = substr($v_data['v_playdata'],0,-3); 

在下方插入:

$v_data['v_playdata'] = str_replace(array('1024','1280','|','版'),'',$v_data['v_playdata']); 

3、过滤(不采集)指定来源的数据
编辑 /include/collection.class.php 文件,找到:

if($video->dl->dd[$i]['flag']=='down') {$v_data['v_downdata'] .= "下载地址1$$".$video->dl->dd[$i]."$$$";} 

在下方插入:

if($video->dl->dd[$i]['flag']=='youku') {$v_data['v_playdata'] .= "";}

首页 > 海洋cms教程