From fc157ff9453a9f79c900dddc0e4af91c460c17c6 Mon Sep 17 00:00:00 2001 From: src48597962 <48597962@qq.com> Date: Mon, 8 Aug 2022 09:31:25 +0000 Subject: [PATCH] update SrcJuying.js. --- SrcJuying.js | 178 +++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 174 insertions(+), 4 deletions(-) diff --git a/SrcJuying.js b/SrcJuying.js index ba52bcc7..5f3e9223 100644 --- a/SrcJuying.js +++ b/SrcJuying.js @@ -1,5 +1,166 @@ //本代码仅用于个人学习,请勿用于其他作用,下载后请24小时内删除 +//接口一级 +function jiekouyiji() { + /* + addListener("onClose", $.toString(() => { + clearMyVar('isverifyA'); + })); +*/ + + var d = []; + const Color = "#3399cc"; + const categorys = ['电视剧','电影','动漫','综艺','纪录片']; + const listTabs = ['teleplay','film','cartoon','tvshow','documentary']; + const fold = getMyVar('SrcJuying$fold', "0"); + const 类型 = getMyVar('SrcJuying$类型', ''); + const 地区 = getMyVar('SrcJuying$地区', ''); + const 年代 = getMyVar('SrcJuying$年代', ''); + const 资源 = getMyVar('SrcJuying$资源', ''); + const 明星 = getMyVar('SrcJuying$明星', ''); + const 排序 = getMyVar('SrcJuying$排序', ''); + MY_URL = "https://waptv.sogou.com/napi/video/classlist?abtest=0&iploc=CN1304&spver=&listTab=" + getMyVar('SrcJuying$listTab', 'teleplay') + "&filter=&start="+ (MY_PAGE-1)*15 +"&len=15&fr=filter"; + + if(类型 != ""){ + MY_URL = MY_URL + "&style=" + 类型; + } + if(地区 != ""){ + MY_URL = MY_URL + "&zone=" + 地区; + } + if(年代 != ""){ + MY_URL = MY_URL + "&year=" + 年代; + } + if(资源 != ""){ + MY_URL = MY_URL + "&fee=" + 资源; + } + if(明星 != ""){ + MY_URL = MY_URL + "&emcee=" + 明星; + } + if(排序 != ""){ + MY_URL = MY_URL + "&order=" + (排序=="最新"?"time":"score"); + } + var cfgfile = "hiker://files/rules/Src/Juying/config.json"; + var Juyingcfg=fetch(cfgfile); + if(Juyingcfg != ""){ + eval("var JYconfig=" + Juyingcfg+ ";"); + }else{ + var JYconfig= {}; + } + if(MY_PAGE==1){ + d.push({ + title: "管理", + url: $("hiker://empty#noRecordHistory##noHistory#").rule(() => { + require(config.依赖.match(/https.*\//)[0] + 'SrcJySet.js'); + SRCSet(); + }), + pic_url: 'https://lanmeiguojiang.com/tubiao/more/129.png', + col_type: 'icon_small_4' + }); + d.push({ + title: JYconfig['recordentry']!=2?"历史":"收藏", + url: JYconfig['recordentry']!=2?"hiker://history":"hiker://collection", + pic_url: 'https://lanmeiguojiang.com/tubiao/more/109.png', + col_type: 'icon_small_4' + }); + d.push({ + title: "搜索", + url: $("hiker://empty#noRecordHistory##noHistory#").rule(() => { + require(config.依赖); + sousuo2(); + }), + pic_url: 'https://lanmeiguojiang.com/tubiao/more/101.png', + col_type: 'icon_small_4' + }); + d.push({ + title: "筛选", + url: $('#noLoading#').lazyRule((fold) => { + putMyVar('SrcJuying$fold', fold === '1' ? '0' : '1'); + refreshPage(false); + return "hiker://empty"; + }, fold), + pic_url: fold === '1'?'https://lanmeiguojiang.com/tubiao/more/213.png':'https://lanmeiguojiang.com/tubiao/more/172.png', + col_type: 'icon_small_4' + }); + d.push({ + col_type: 'line' + }); + for (let i = 0; i < 10; i++) { + d.push({ + col_type: "blank_block" + }) + } + + for (var i in categorys) { + d.push({ + title: getMyVar('SrcJuying$listTab', 'teleplay') === listTabs[i] ? '““””' + categorys[i] + '' : categorys[i], + url: $('#noLoading#').lazyRule((listTab) => { + putMyVar('SrcJuying$listTab', listTab); + refreshPage(false); + return "hiker://empty"; + }, listTabs[i]), + col_type: 'scroll_button' + }); + } + d.push({ + col_type: "blank_block" + }); + + var html = JSON.parse(request(MY_URL)); + + if(fold==='1'){ + var filter = html.listData.list.filter_list; + for (var i in filter) { + d.push({ + title: filter[i].name=="排序"?排序==""?'““””最热':"最热":(类型==""&&filter[i].name=="类型")||(地区==""&&filter[i].name=="地区")||(年代==""&&filter[i].name=="年代")||(资源==""&&filter[i].name=="资源")||(明星==""&&filter[i].name=="明星")?'““””全部':"全部", + url: $('#noLoading#').lazyRule((name) => { + putMyVar('SrcJuying$'+name, ''); + refreshPage(false); + return "hiker://empty"; + }, filter[i].name), + col_type: 'scroll_button', + }) + let option_list = filter[i].option_list; + for (var j in option_list) { + d.push({ + title: getMyVar('SrcJuying$'+filter[i].name, '')==option_list[j]?'““””'+option_list[j]+'':option_list[j], + url: $('#noLoading#').lazyRule((name,option) => { + putMyVar('SrcJuying$'+name, option); + refreshPage(false); + return "hiker://empty"; + }, filter[i].name, option_list[j]), + col_type: 'scroll_button' + }); + } + d.push({ + col_type: "blank_block" + }); + } + } + }else{ + var html = JSON.parse(request(MY_URL)); + } + var seachurl = $('').lazyRule(() => { + return $('hiker://empty#noRecordHistory##noHistory#').rule((name) => { + require(config.依赖.match(/https.*\//)[0] + 'SrcJyXunmi.js'); + xunmi(name); + }, input); + }); + + var list = html.listData.results; + for (var i in list) { + d.push({ + title: list[i].name, + img: list[i].v_picurl + '@Referer=', + url: JYconfig['erjimode']!=2?"hiker://empty##https://v.sogou.com" + list[i].url.replace('teleplay', 'series').replace('cartoon', 'series') + "#immersiveTheme#":list[i].name + seachurl, + desc: list[i].ipad_play_for_list.finish_episode?list[i].ipad_play_for_list.episode==list[i].ipad_play_for_list.finish_episode?"全集"+list[i].ipad_play_for_list.finish_episode:"连载"+list[i].ipad_play_for_list.episode+"/"+list[i].ipad_play_for_list.finish_episode:"", + extra: { + pic: list[i].v_picurl, + name: list[i].name + } + }); + } + setResult(d); +} //二级 function erji() { addListener("onClose", $.toString(() => { @@ -328,13 +489,13 @@ function yiji() { SRCSet(); }), pic_url: 'https://lanmeiguojiang.com/tubiao/more/129.png', - col_type: 'icon_small_4' + col_type: 'icon_small_5' }); d.push({ title: JYconfig['recordentry']!=2?"历史":"收藏", url: JYconfig['recordentry']!=2?"hiker://history":"hiker://collection", pic_url: 'https://lanmeiguojiang.com/tubiao/more/109.png', - col_type: 'icon_small_4' + col_type: 'icon_small_5' }); d.push({ title: "搜索", @@ -343,7 +504,7 @@ function yiji() { sousuo2(); }), pic_url: 'https://lanmeiguojiang.com/tubiao/more/101.png', - col_type: 'icon_small_4' + col_type: 'icon_small_5' }); d.push({ title: "筛选", @@ -353,7 +514,16 @@ function yiji() { return "hiker://empty"; }, fold), pic_url: fold === '1'?'https://lanmeiguojiang.com/tubiao/more/213.png':'https://lanmeiguojiang.com/tubiao/more/172.png', - col_type: 'icon_small_4' + col_type: 'icon_small_5' + }); + d.push({ + title: "进入", + url: $("hiker://empty#noRecordHistory##noHistory#").rule(() => { + require(config.依赖); + jiekouyiji(); + }), + pic_url: 'https://lanmeiguojiang.com/tubiao/more/213.png', + col_type: 'icon_small_5' }); d.push({ col_type: 'line'