提交 57eaf50f 编写于 作者: H hjdhnx

更新了api

上级 e12ff027
无法预览此类型文件
......@@ -1039,7 +1039,14 @@ class CMS:
# print(vodHeader)
# print(vod)
new_map = {}
for v in vodHeader:
if not v in new_map:
new_map[v] = 1
else:
new_map[v] += 1
if new_map[v] > 1:
v = f'{v}{new_map[v]-1}'
playFrom.append(v)
vod_play_from = vod_play_from.join(playFrom)
......
3.9.25beta3
\ No newline at end of file
3.9.25beta4
\ No newline at end of file
......@@ -19,7 +19,7 @@ var rule = {
推荐:'.tbox2;*;*;*;*;*',
double:true, // 推荐内容是否双层定位
一级:'ul.tbox_m2 li;a&&title;a&&data-original;span&&Text;a&&href',
二级:{"title":".data h4--i&&Text;.yac&&Text","img":".item-lazy&&data-original","desc":";;;.act&&Text;.dir&&Text","content":".tbox_js&&Text","tabs":"js:pdfa=jsp.pdfa;TABS=pdfa(html,'.tbox_t h3').map(function(it,idex){return '线路'+(idex+1)})","lists":"ul.list_block:eq(#id) li"},
二级:{"title":".data h4--i&&Text;.yac&&Text","img":".item-lazy&&data-original","desc":";;;.act&&Text;.dir&&Text","content":".tbox_js&&Text","tabs":"js:pdfa=jsp.pdfa;TABS=pdfa(html,'.tbox_t h3').map(function(it,idex){return '线路'+(idex+1)})","lists":"ul.list_block:eq(#id) li","tabs":".tbox_t h3"},
搜索:'ul.tbox_m li;*;*;*;*',
}
......@@ -1821,12 +1821,21 @@ function detailParse(detailObj){
console.log(vHeader.length);
let tab_text = p.tab_text||'body&&Text';
// print('tab_text:'+tab_text);
let new_map = {};
for(let v of vHeader){
let v_title = _pdfh(v,tab_text).trim();
console.log(v_title);
if(tab_exclude&& (new RegExp(tab_exclude)).test(v_title)){
continue;
}
if(!new_map.hasOwnProperty(v_title)){
new_map[v_title] = 1;
}else{
new_map[v_title] += 1;
}
if(new_map[v_title]>1){
v_title+=Number(new_map[v_title]-1);
}
playFrom.push(v_title);
}
}
......
此差异已折叠。
......@@ -1691,12 +1691,21 @@ function detailParse(detailObj){
console.log(vHeader.length);
let tab_text = p.tab_text||'body&&Text';
// print('tab_text:'+tab_text);
let new_map = {};
for(let v of vHeader){
let v_title = _pdfh(v,tab_text).trim();
console.log(v_title);
if(tab_exclude&& (new RegExp(tab_exclude)).test(v_title)){
continue;
}
if(!new_map.hasOwnProperty(v_title)){
new_map[v_title] = 1;
}else{
new_map[v_title] += 1;
}
if(new_map[v_title]>1){
v_title+=Number(new_map[v_title]-1);
}
playFrom.push(v_title);
}
}
......
此差异已折叠。
......@@ -52,6 +52,7 @@
###### 2022/11/27
- [X] 修复alist含字幕视频无法播放问题以及dsf文件无法显示问题
- [X] drpy系列接口增加首页推荐和一级分类前两条数据打印
- [X] drpy系列接口增加二级自动重命名同名线路(参考乐猪)
###### 2022/11/26
- [X] drpy系列资源接口修复,推荐为double的情况也支持第二个定位写*自动继承一级的第一个定位(参考乐猪TV)
- [X] V3.9.25新特性:搜索支持post(参考乐猪TV) 格式为 搜索链接;post (搜索参数用#传递)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册