update SrcJuying.js.

pull/1/head
src48597962 3 years ago committed by Gitee
parent fb4a2c4b4c
commit c8d7251532
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
  1. 36
      SrcJuying.js

@ -2237,21 +2237,7 @@ function erji() {
clearMyVar('SrcM3U8'); clearMyVar('SrcM3U8');
})); }));
var d = []; var d = [];
//加载本地自定义变量缓存文件
//var configfile = config.依赖.match(/https.*\//)[0] + 'srcconfig.js';
//require(configfile);
//自动判断是否需要更新请求
//if (getMyVar('myurl', '0') != MY_URL || !configvar.详情1 || configvar.标识 != MY_URL) {
var html = fetch(MY_URL.split('##')[1]); var html = fetch(MY_URL.split('##')[1]);
// var zt = 1;
// putMyVar('myurl', MY_URL);
//} else {
// var zt = 0;
//}
//影片详情
//if (zt == 1) {
var json = JSON.parse(html.match(/INITIAL_STATE.*?({.*});/)[1]).detail.itemData; var json = JSON.parse(html.match(/INITIAL_STATE.*?({.*});/)[1]).detail.itemData;
var plays = json.play.item_list; var plays = json.play.item_list;
//log(plays); //log(plays);
@ -2268,16 +2254,6 @@ function erji() {
var details1 = director.substring(0, 15) + '\n' + actor.substring(0, 15) + '\n' + area + year; var details1 = director.substring(0, 15) + '\n' + actor.substring(0, 15) + '\n' + area + year;
var details2 = remarks + '\n' + pubdate; var details2 = remarks + '\n' + pubdate;
var pic = MY_PARAMS.pic; var pic = MY_PARAMS.pic;
/* var newconfig = { 1: details1, 2: details2, : pic, : MY_URL, plays: plays, shows: shows };
var libsfile = 'hiker://files/libs/' + md5(configfile) + '.js';
writeFile(libsfile, 'var configvar = ' + JSON.stringify(newconfig));
} else {
var details1 = configvar.详情1;
var details2 = configvar.详情2;
var pic = configvar.图片;
var plays = configvar.plays;
var shows = configvar.shows;
}*/
d.push({ d.push({
title: details1,//详情1 title: details1,//详情1
desc: details2,//详情2 desc: details2,//详情2
@ -2393,17 +2369,17 @@ function erji() {
} }
var easy = $("").lazyRule(() => { var easy = $("").lazyRule(() => {
try{ try{
//input=fetch(input,{}).split("('")[1].split("'")[0]; input=fetch(input,{}).split("('")[1].split("'")[0];
//log(input); log(input);
/*
if(input.match(/ixigua|iqiyi|qq.com|mgtv|le\.com|bili|sohu|youku|pptv|cctv|1905\.com/)){ if(input.match(/ixigua|iqiyi|qq.com|mgtv|le\.com|bili|sohu|youku|pptv|cctv|1905\.com/)){
input=input.split("?")[0]; input=input.split("?")[0];
}else if(input.match(/huanxi/)){ }else if(input.match(/huanxi/)){
input=input.split("&")[0]; input=input.split("&")[0];
}else if(input.match(/migu/)){ }else if(input.match(/migu/)){
input=input.replace(/http/,'https').split("&from")[0]; input=input.replace(/http/,'https').split("&from")[0];
}*/ }
/*
if (input.indexOf('sa.sogou') != -1) { if (input.indexOf('sa.sogou') != -1) {
input = fetch(input,{}).split("('")[1].split("'")[0]; input = fetch(input,{}).split("('")[1].split("'")[0];
} else { } else {
@ -2416,7 +2392,7 @@ function erji() {
input = input.split("?")[0]; input = input.split("?")[0];
} }
} }
*/
if(!/^http/.test(input)){ if(!/^http/.test(input)){
return "toast://本集无播放地址,可从更多片源中寻找"; return "toast://本集无播放地址,可从更多片源中寻找";
} }

Loading…
Cancel
Save