更新 'SrcJuying.js'

master
src48597962 9 months ago
parent aac879d423
commit 782307dbe5
  1. 133
      SrcJuying.js

@ -224,86 +224,81 @@ function dianboerji() {
}) })
} }
}) })
//生成选集
let list = erdata.lists[lineindex] || [];
function playlist(lx, col_type) {//定义选集列表生成
if (lx == '1') {
let playtitle = list[j].split('$')[0].trim();
let playurl = list[j].split('$')[1].trim();
let lazy = $("").lazyRule(() => {
require(config.依赖.match(/http(s)?:\/\/.*\//)[0] + 'SrcParseS.js');
return SrcParseS.聚影(input);
});
//选集部份 let extra = {
function setLists(lists, index) { id: playurl,
let list = lists[index] || []; jsLoadingInject: true,
function playlist(lx, col_type) {//定义选集列表生成 blockRules: ['.m4a', '.mp3', '.gif', '.jpeg', '.jpg', '.ico', '.png', 'hm.baidu.com', '/ads/*.js', 'cnzz.com'],
if (lx == '1') { videoExcludeRule: ['m3u8.js','?url='],
let playtitle = list[j].split('$')[0].trim(); cls: "playlist"
let playurl = list[j].split('$')[1].trim(); }
let lazy = $("").lazyRule(() => {
require(config.依赖.match(/http(s)?:\/\/.*\//)[0] + 'SrcParseS.js'); if(!/qq|youku|mgtv|bili|qiyi|sohu|pptv/.test(playurl) && /html/.test(playurl)){
return SrcParseS.聚影(input); extra.referer = playurl;
}); }
if(getMyVar('superwebM3U8') == "1"){
extra.cacheM3u8 = true;
}
let extra = { d.push({
id: playurl, title: getHead(playtitle.replace(/第|集|话|期|-|new|最新|新/g, ''), Color3),
jsLoadingInject: true, url: playurl + lazy,
blockRules: ['.m4a', '.mp3', '.gif', '.jpeg', '.jpg', '.ico', '.png', 'hm.baidu.com', '/ads/*.js', 'cnzz.com'], extra: extra,
videoExcludeRule: ['m3u8.js','?url='], col_type: col_type
cls: "loadlist" });
} } else {
d.push({
if(!/qq|youku|mgtv|bili|qiyi|sohu|pptv/.test(playurl) && /html/.test(playurl)){ title: '当前无播放选集,点更多片源试试!',
extra.referer = playurl; url: '#noHistory#hiker://empty',
} col_type: 'text_center_1'
if(getMyVar('superwebM3U8') == "1"){ });
extra.cacheM3u8 = true; }
}
d.push({ }
title: getHead(playtitle.replace(/第|集|话|期|-|new|最新|新/g, ''), Color3), if (list.length == 0) {
url: playurl + lazy, playlist('0');
extra: extra, } else {
col_type: col_type try{
}); let list1 = list[0].split('$')[0];
} else { let list2 = list[list.length-1].split('$')[0];
d.push({ if(parseInt(list1.match(/(\d+)/)[0])>parseInt(list2.match(/(\d+)/)[0])){
title: '当前无播放选集,点更多片源试试!', list.reverse();
url: '#noHistory#hiker://empty',
col_type: 'text_center_1'
});
} }
}catch(e){
//log('修正选集顺序失败>'+e.message)
} }
if (list.length == 0) { let listone = list[0].split('$')[0].trim();
playlist('0'); let len = listone.length;
} else { let col_type = list.length > 4 && len < 7 ? 'text_4' : len > 20 ? 'text_1' :'text_3';
try{ if (getMyVar('shsort') == '1') {
let list1 = list[0].split('$')[0]; try {
let list2 = list[list.length-1].split('$')[0]; for (var j = list.length - 1; j >= 0; j--) {
if(parseInt(list1.match(/(\d+)/)[0])>parseInt(list2.match(/(\d+)/)[0])){ playlist('1', col_type);
list.reverse();
} }
}catch(e){ } catch (e) {
//log('修正选集顺序失败>'+e.message) playlist('0');
} }
let listone = list[0].split('$')[0].trim(); } else {
let len = listone.length; try {
let col_type = list.length > 4 && len < 7 ? 'text_4' : len > 20 ? 'text_1' :'text_3'; for (var j = 0; j < list.length; j++) {
if (getMyVar('shsort') == '1') { playlist('1', col_type);
try {
for (var j = list.length - 1; j >= 0; j--) {
playlist('1', col_type);
}
} catch (e) {
playlist('0');
}
} else {
try {
for (var j = 0; j < list.length; j++) {
playlist('1', col_type);
}
} catch (e) {
playlist('0');
} }
} catch (e) {
playlist('0');
} }
} }
} }
setLists(erdata.lists, lineindex);
//底部说明 //底部说明
d.push({ d.push({

Loading…
Cancel
Save