更新 'SrcJuying.js'

master
src48597962 9 months ago
parent a8c53160ee
commit faa2036f05
  1. 21
      SrcJuying.js

@ -127,7 +127,7 @@ function dianboerji() {
log(list); log(list);
log(type); log(type);
function playlist(lx, len) {//定义选集列表生成 function playlist(lx, col_type) {//定义选集列表生成
if (lx == '1') { if (lx == '1') {
if (/v1|app|v2|iptv|cms/.test(type)) { if (/v1|app|v2|iptv|cms/.test(type)) {
var playtitle = list[j].split('$')[0].trim(); var playtitle = list[j].split('$')[0].trim();
@ -187,7 +187,7 @@ function dianboerji() {
title: getHead(playtitle.replace(/第|集|话|期|-|new|最新|新/g, ''), Color3), title: getHead(playtitle.replace(/第|集|话|期|-|new|最新|新/g, ''), Color3),
url: playurl + DTJX, url: playurl + DTJX,
extra: extra, extra: extra,
col_type: list.length > 4 && len < 7 ? 'text_4' : len > 20 ? 'text_1' :'text_3' col_type: col_type
}); });
} else { } else {
d.push({ d.push({
@ -201,8 +201,6 @@ function dianboerji() {
if (list.length == 0) { if (list.length == 0) {
playlist('0'); playlist('0');
} else { } else {
if (/v1|app|v2|iptv|cms|xpath|biubiu|XBPQ/.test(type)) {
var listone = list[0].split('$')[0].trim();
try{ try{
let list1 = list[0].split('$')[0]; let list1 = list[0].split('$')[0];
let list2 = list[list.length-1].split('$')[0]; let list2 = list[list.length-1].split('$')[0];
@ -212,17 +210,13 @@ function dianboerji() {
}catch(e){ }catch(e){
//log('修正选集顺序失败>'+e.message) //log('修正选集顺序失败>'+e.message)
} }
}else{ let listone = list[0].split('$')[0].trim();
let len = listone.length;
} let col_type = list.length > 4 && len < 7 ? 'text_4' : len > 20 ? 'text_1' :'text_3';
if (listone) {
var len = listone.length;
}
if (getMyVar('shsort') == '1') { if (getMyVar('shsort') == '1') {
try { try {
for (var j = list.length - 1; j >= 0; j--) { for (var j = list.length - 1; j >= 0; j--) {
playlist('1', len); playlist('1', col_type);
} }
} catch (e) { } catch (e) {
playlist('0'); playlist('0');
@ -230,10 +224,9 @@ function dianboerji() {
} else { } else {
try { try {
for (var j = 0; j < list.length; j++) { for (var j = 0; j < list.length; j++) {
playlist('1', len); playlist('1', col_type);
} }
} catch (e) { } catch (e) {
log(e.message);
playlist('0'); playlist('0');
} }

Loading…
Cancel
Save