1 |
- import{Crypto,load,_,jinja2}from"assets://js/lib/cat.js";let key="duboku",url="https://www.duboku.tv",siteKey="",siteType=0;const UA="Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1";async function request(reqUrl,agentSp){return(await req(reqUrl,{method:"get",headers:{"User-Agent":agentSp||UA,Referer:url}})).content}async function init(cfg){siteKey=cfg.skey,siteType=cfg.stype}async function home(filter){var html=await request(url),html=load(html)("ul.nav-list > li > a[href*=vodtype]"),html=_.map(html,cls=>{let typeId=cls.attribs.href;return{type_id:typeId=typeId.substring(typeId.lastIndexOf("/")+1).replace(".html",""),type_name:cls.children[0].data}});return JSON.stringify({class:html,filters:{2:[{key:"cateId",name:"类型",value:[{n:"全部",v:"2"},{n:"陆剧",v:"13"},{n:"日韩剧",v:"15"},{n:"短剧",v:"21"},{n:"台泰剧",v:"14"},{n:"港剧",v:"20"}]},{key:"class",name:"剧情",value:[{n:"全部",v:""},{n:"悬疑",v:"悬疑"},{n:"武侠",v:"武侠"},{n:"科幻",v:"科幻"},{n:"都市",v:"都市"},{n:"爱情",v:"爱情"},{n:"古装",v:"古装"},{n:"战争",v:"战争"},{n:"青春",v:"青春"},{n:"偶像",v:"偶像"},{n:"喜剧",v:"喜剧"},{n:"家庭",v:"家庭"},{n:"犯罪",v:"犯罪"},{n:"奇幻",v:"奇幻"},{n:"剧情",v:"剧情"},{n:"乡村",v:"乡村"},{n:"年代",v:"年代"},{n:"警匪",v:"警匪"},{n:"谍战",v:"谍战"},{n:"冒险",v:"冒险"},{n:"罪案",v:"罪案"},{n:"宫廷",v:"宫廷"},{n:"BL",v:"BL"}]},{key:"area",name:"地区",value:[{n:"全部",v:""},{n:"内地",v:"内地"},{n:"韩国",v:"韩国"},{n:"香港",v:"香港"},{n:"台湾",v:"台湾"},{n:"美国",v:"美国"},{n:"英国",v:"英国"},{n:"巴西",v:"巴西"},{n:"泰国",v:"泰国"},{n:"法国",v:"法国"},{n:"日本",v:"日本"},{n:"荷兰",v:"荷兰"}]},{key:"year",name:"年份",value:[{n:"全部",v:""},{n:"2023",v:"2023"},{n:"2022",v:"2022"},{n:"2021",v:"2021"},{n:"2020",v:"2020"},{n:"2019",v:"2019"},{n:"2018",v:"2018"},{n:"2017",v:"2017"}]},{key:"lang",name:"语言",value:[{n:"全部",v:""},{n:"国语",v:"国语"},{n:"英语",v:"英语"},{n:"粤语",v:"粤语"},{n:"韩语",v:"韩语"},{n:"泰语",v:"泰语"},{n:"法语",v:"法语"},{n:"日语",v:"日语"}]},{key:"letter",name:"字母",value:[{n:"全部",v:""},{n:"A",v:"A"},{n:"B",v:"B"},{n:"C",v:"C"},{n:"D",v:"D"},{n:"E",v:"E"},{n:"F",v:"F"},{n:"G",v:"G"},{n:"H",v:"H"},{n:"I",v:"I"},{n:"J",v:"J"},{n:"K",v:"K"},{n:"L",v:"L"},{n:"M",v:"M"},{n:"N",v:"N"},{n:"O",v:"O"},{n:"P",v:"P"},{n:"Q",v:"Q"},{n:"R",v:"R"},{n:"S",v:"S"},{n:"T",v:"T"},{n:"U",v:"U"},{n:"V",v:"V"},{n:"W",v:"W"},{n:"X",v:"X"},{n:"Y",v:"Y"},{n:"Z",v:"Z"}]},{key:"by",name:"排序",value:[{n:"时间",v:"time"},{n:"人气",v:"hits"},{n:"评分",v:"score"}]}],3:[{key:"class",name:"剧情",value:[{n:"全部",v:""},{n:"真人秀",v:"真人秀"},{n:"选秀",v:"选秀"},{n:"竞演",v:"竞演"},{n:"情感",v:"情感"},{n:"访谈",v:"访谈"},{n:"播报",v:"播报"},{n:"旅游",v:"旅游"},{n:"音乐",v:"音乐"},{n:"美食",v:"美食"},{n:"纪实",v:"纪实"},{n:"曲艺",v:"曲艺"},{n:"生活",v:"生活"},{n:"游戏互动",v:"游戏互动"}]},{key:"area",name:"地区",value:[{n:"全部",v:""},{n:"内地",v:"内地"},{n:"香港",v:"香港"},{n:"台湾",v:"台湾"},{n:"韩国",v:"韩国"},{n:"美国",v:"美国"}]},{key:"year",name:"年份",value:[{n:"全部",v:""},{n:"2023",v:"2023"},{n:"2022",v:"2022"},{n:"2021",v:"2021"},{n:"2020",v:"2020"},{n:"2019",v:"2019"}]},{key:"lang",name:"语言",value:[{n:"全部",v:""},{n:"国语",v:"国语"},{n:"英语",v:"英语"},{n:"粤语",v:"粤语"},{n:"闽南语",v:"闽南语"},{n:"韩语",v:"韩语"},{n:"日语",v:"日语"},{n:"其它",v:"其它"}]},{key:"letter",name:"字母",value:[{n:"全部",v:""},{n:"A",v:"A"},{n:"B",v:"B"},{n:"C",v:"C"},{n:"D",v:"D"},{n:"E",v:"E"},{n:"F",v:"F"},{n:"G",v:"G"},{n:"H",v:"H"},{n:"I",v:"I"},{n:"J",v:"J"},{n:"K",v:"K"},{n:"L",v:"L"},{n:"M",v:"M"},{n:"N",v:"N"},{n:"O",v:"O"},{n:"P",v:"P"},{n:"Q",v:"Q"},{n:"R",v:"R"},{n:"S",v:"S"},{n:"T",v:"T"},{n:"U",v:"U"},{n:"V",v:"V"},{n:"W",v:"W"},{n:"X",v:"X"},{n:"Y",v:"Y"},{n:"Z",v:"Z"}]},{key:"by",name:"排序",value:[{n:"时间",v:"time"},{n:"人气",v:"hits"},{n:"评分",v:"score"}]}],4:[{key:"class",name:"剧情",value:[{n:"全部",v:""},{n:"玄幻",v:"玄幻"},{n:"武侠",v:"武侠"},{n:"情感",v:"情感"},{n:"科幻",v:"科幻"},{n:"热血",v:"热血"},{n:"推理",v:"推理"},{n:"搞笑",v:"搞笑"},{n:"冒险",v:"冒险"},{n:"萝莉",v:"萝莉"},{n:"校园",v:"校园"},{n:"动作",v:"动作"},{n:"机战",v:"机战"},{n:"运动",v:"运动"},{n:"战争",v:"战争"},{n:"少年",v:"少年"},{n:"少女",v:"少女"},{n:"社会",v:"社会"},{n:"亲子",v:"亲子"},{n:"益智",v:"益智"},{n:"励志",v:"励志"},{n:"其他",v:"其他"}]},{key:"area",name:"地区",value:[{n:"全部",v:""},{n:"国产",v:"国产"},{n:"日本",v:"日本"},{n:"美国",v:"美国"},{n:"法国",v:"法国"},{n:"其他",v:"其他"}]},{key:"year",name:"年份",value:[{n:"全部",v:""},{n:"2023",v:"2023"},{n:"2022",v:"2022"},{n:"2021",v:"2021"},{n:"2020",v:"2020"},{n:"2019",v:"2019"},{n:"2018",v:"2018"},{n:"2017",v:"2017"}]},{key:"lang",name:"语言",value:[{n:"全部",v:""},{n:"国语",v:"国语"},{n:"英语",v:"英语"},{n:"粤语",v:"粤语"},{n:"闽南语",v:"闽南语"},{n:"韩语",v:"韩语"},{n:"日语",v:"日语"},{n:"其它",v:"其它"}]},{key:"letter",name:"字母",value:[{n:"全部",v:""},{n:"A",v:"A"},{n:"B",v:"B"},{n:"C",v:"C"},{n:"D",v:"D"},{n:"E",v:"E"},{n:"F",v:"F"},{n:"G",v:"G"},{n:"H",v:"H"},{n:"I",v:"I"},{n:"J",v:"J"},{n:"K",v:"K"},{n:"L",v:"L"},{n:"M",v:"M"},{n:"N",v:"N"},{n:"O",v:"O"},{n:"P",v:"P"},{n:"Q",v:"Q"},{n:"R",v:"R"},{n:"S",v:"S"},{n:"T",v:"T"},{n:"U",v:"U"},{n:"V",v:"V"},{n:"W",v:"W"},{n:"X",v:"X"},{n:"Y",v:"Y"},{n:"Z",v:"Z"}]},{key:"by",name:"排序",value:[{n:"时间",v:"time"},{n:"人气",v:"hits"},{n:"评分",v:"score"}]}],13:[{key:"class",name:"剧情",value:[{n:"全部",v:""},{n:"悬疑",v:"悬疑"},{n:"武侠",v:"武侠"},{n:"科幻",v:"科幻"},{n:"都市",v:"都市"},{n:"爱情",v:"爱情"},{n:"古装",v:"古装"},{n:"战争",v:"战争"},{n:"青春",v:"青春"},{n:"偶像",v:"偶像"},{n:"喜剧",v:"喜剧"},{n:"家庭",v:"家庭"},{n:"犯罪",v:"犯罪"},{n:"奇幻",v:"奇幻"},{n:"剧情",v:"剧情"},{n:"乡村",v:"乡村"},{n:"年代",v:"年代"},{n:"警匪",v:"警匪"},{n:"谍战",v:"谍战"},{n:"冒险",v:"冒险"},{n:"罪案",v:"罪案"},{n:"宫廷",v:"宫廷"},{n:"BL",v:"BL"}]},{key:"year",name:"年份",value:[{n:"全部",v:""},{n:"2023",v:"2023"},{n:"2022",v:"2022"},{n:"2021",v:"2021"},{n:"2020",v:"2020"},{n:"2019",v:"2019"},{n:"2018",v:"2018"},{n:"2017",v:"2017"}]},{key:"letter",name:"字母",value:[{n:"全部",v:""},{n:"A",v:"A"},{n:"B",v:"B"},{n:"C",v:"C"},{n:"D",v:"D"},{n:"E",v:"E"},{n:"F",v:"F"},{n:"G",v:"G"},{n:"H",v:"H"},{n:"I",v:"I"},{n:"J",v:"J"},{n:"K",v:"K"},{n:"L",v:"L"},{n:"M",v:"M"},{n:"N",v:"N"},{n:"O",v:"O"},{n:"P",v:"P"},{n:"Q",v:"Q"},{n:"R",v:"R"},{n:"S",v:"S"},{n:"T",v:"T"},{n:"U",v:"U"},{n:"V",v:"V"},{n:"W",v:"W"},{n:"X",v:"X"},{n:"Y",v:"Y"},{n:"Z",v:"Z"}]},{key:"by",name:"排序",value:[{n:"时间",v:"time"},{n:"人气",v:"hits"},{n:"评分",v:"score"}]}],15:[{key:"class",name:"剧情",value:[{n:"全部",v:""},{n:"悬疑",v:"悬疑"},{n:"武侠",v:"武侠"},{n:"科幻",v:"科幻"},{n:"都市",v:"都市"},{n:"爱情",v:"爱情"},{n:"古装",v:"古装"},{n:"战争",v:"战争"},{n:"青春",v:"青春"},{n:"偶像",v:"偶像"},{n:"喜剧",v:"喜剧"},{n:"家庭",v:"家庭"},{n:"犯罪",v:"犯罪"},{n:"奇幻",v:"奇幻"},{n:"剧情",v:"剧情"},{n:"乡村",v:"乡村"},{n:"年代",v:"年代"},{n:"警匪",v:"警匪"},{n:"谍战",v:"谍战"},{n:"冒险",v:"冒险"},{n:"罪案",v:"罪案"},{n:"宫廷",v:"宫廷"},{n:"BL",v:"BL"}]},{key:"area",name:"地区",value:[{n:"全部",v:""},{n:"韩国",v:"韩国"},{n:"日本",v:"日本"}]},{key:"year",name:"年份",value:[{n:"全部",v:""},{n:"2023",v:"2023"},{n:"2022",v:"2022"},{n:"2021",v:"2021"},{n:"2020",v:"2020"},{n:"2019",v:"2019"},{n:"2018",v:"2018"},{n:"2017",v:"2017"}]},{key:"letter",name:"字母",value:[{n:"全部",v:""},{n:"A",v:"A"},{n:"B",v:"B"},{n:"C",v:"C"},{n:"D",v:"D"},{n:"E",v:"E"},{n:"F",v:"F"},{n:"G",v:"G"},{n:"H",v:"H"},{n:"I",v:"I"},{n:"J",v:"J"},{n:"K",v:"K"},{n:"L",v:"L"},{n:"M",v:"M"},{n:"N",v:"N"},{n:"O",v:"O"},{n:"P",v:"P"},{n:"Q",v:"Q"},{n:"R",v:"R"},{n:"S",v:"S"},{n:"T",v:"T"},{n:"U",v:"U"},{n:"V",v:"V"},{n:"W",v:"W"},{n:"X",v:"X"},{n:"Y",v:"Y"},{n:"Z",v:"Z"}]},{key:"by",name:"排序",value:[{n:"时间",v:"time"},{n:"人气",v:"hits"},{n:"评分",v:"score"}]}],21:[{key:"class",name:"剧情",value:[{n:"全部",v:""},{n:"悬疑",v:"悬疑"},{n:"武侠",v:"武侠"},{n:"科幻",v:"科幻"},{n:"都市",v:"都市"},{n:"爱情",v:"爱情"},{n:"古装",v:"古装"},{n:"战争",v:"战争"},{n:"青春",v:"青春"},{n:"偶像",v:"偶像"},{n:"喜剧",v:"喜剧"},{n:"家庭",v:"家庭"},{n:"犯罪",v:"犯罪"},{n:"奇幻",v:"奇幻"},{n:"剧情",v:"剧情"},{n:"乡村",v:"乡村"},{n:"年代",v:"年代"},{n:"警匪",v:"警匪"},{n:"谍战",v:"谍战"},{n:"冒险",v:"冒险"},{n:"罪案",v:"罪案"},{n:"宫廷",v:"宫廷"},{n:"BL",v:"BL"}]},{key:"year",name:"年份",value:[{n:"全部",v:""},{n:"2023",v:"2023"},{n:"2022",v:"2022"},{n:"2021",v:"2021"},{n:"2020",v:"2020"},{n:"2019",v:"2019"},{n:"2018",v:"2018"},{n:"2017",v:"2017"}]},{key:"letter",name:"字母",value:[{n:"全部",v:""},{n:"A",v:"A"},{n:"B",v:"B"},{n:"C",v:"C"},{n:"D",v:"D"},{n:"E",v:"E"},{n:"F",v:"F"},{n:"G",v:"G"},{n:"H",v:"H"},{n:"I",v:"I"},{n:"J",v:"J"},{n:"K",v:"K"},{n:"L",v:"L"},{n:"M",v:"M"},{n:"N",v:"N"},{n:"O",v:"O"},{n:"P",v:"P"},{n:"Q",v:"Q"},{n:"R",v:"R"},{n:"S",v:"S"},{n:"T",v:"T"},{n:"U",v:"U"},{n:"V",v:"V"},{n:"W",v:"W"},{n:"X",v:"X"},{n:"Y",v:"Y"},{n:"Z",v:"Z"}]},{key:"by",name:"排序",value:[{n:"时间",v:"time"},{n:"人气",v:"hits"},{n:"评分",v:"score"}]}],14:[{key:"class",name:"剧情",value:[{n:"全部",v:""},{n:"悬疑",v:"悬疑"},{n:"武侠",v:"武侠"},{n:"科幻",v:"科幻"},{n:"都市",v:"都市"},{n:"爱情",v:"爱情"},{n:"古装",v:"古装"},{n:"战争",v:"战争"},{n:"青春",v:"青春"},{n:"偶像",v:"偶像"},{n:"喜剧",v:"喜剧"},{n:"家庭",v:"家庭"},{n:"犯罪",v:"犯罪"},{n:"奇幻",v:"奇幻"},{n:"剧情",v:"剧情"},{n:"乡村",v:"乡村"},{n:"年代",v:"年代"},{n:"警匪",v:"警匪"},{n:"谍战",v:"谍战"},{n:"冒险",v:"冒险"},{n:"罪案",v:"罪案"},{n:"宫廷",v:"宫廷"},{n:"BL",v:"BL"}]},{key:"area",name:"地区",value:[{n:"全部",v:""},{n:"台湾",v:"台湾"},{n:"泰国",v:"泰国"}]},{key:"year",name:"年份",value:[{n:"全部",v:""},{n:"2023",v:"2023"},{n:"2022",v:"2022"},{n:"2021",v:"2021"},{n:"2020",v:"2020"},{n:"2019",v:"2019"},{n:"2018",v:"2018"},{n:"2017",v:"2017"}]},{key:"letter",name:"字母",value:[{n:"全部",v:""},{n:"A",v:"A"},{n:"B",v:"B"},{n:"C",v:"C"},{n:"D",v:"D"},{n:"E",v:"E"},{n:"F",v:"F"},{n:"G",v:"G"},{n:"H",v:"H"},{n:"I",v:"I"},{n:"J",v:"J"},{n:"K",v:"K"},{n:"L",v:"L"},{n:"M",v:"M"},{n:"N",v:"N"},{n:"O",v:"O"},{n:"P",v:"P"},{n:"Q",v:"Q"},{n:"R",v:"R"},{n:"S",v:"S"},{n:"T",v:"T"},{n:"U",v:"U"},{n:"V",v:"V"},{n:"W",v:"W"},{n:"X",v:"X"},{n:"Y",v:"Y"},{n:"Z",v:"Z"}]},{key:"by",name:"排序",value:[{n:"时间",v:"time"},{n:"人气",v:"hits"},{n:"评分",v:"score"}]}],20:[{key:"class",name:"剧情",value:[{n:"全部",v:""},{n:"悬疑",v:"悬疑"},{n:"武侠",v:"武侠"},{n:"科幻",v:"科幻"},{n:"都市",v:"都市"},{n:"爱情",v:"爱情"},{n:"古装",v:"古装"},{n:"战争",v:"战争"},{n:"青春",v:"青春"},{n:"偶像",v:"偶像"},{n:"喜剧",v:"喜剧"},{n:"家庭",v:"家庭"},{n:"犯罪",v:"犯罪"},{n:"奇幻",v:"奇幻"},{n:"剧情",v:"剧情"},{n:"乡村",v:"乡村"},{n:"年代",v:"年代"},{n:"警匪",v:"警匪"},{n:"谍战",v:"谍战"},{n:"冒险",v:"冒险"},{n:"罪案",v:"罪案"},{n:"宫廷",v:"宫廷"},{n:"BL",v:"BL"}]},{key:"year",name:"年份",value:[{n:"全部",v:""},{n:"2023",v:"2023"},{n:"2022",v:"2022"},{n:"2021",v:"2021"},{n:"2020",v:"2020"},{n:"2019",v:"2019"},{n:"2018",v:"2018"},{n:"2017",v:"2017"}]},{key:"letter",name:"字母",value:[{n:"全部",v:""},{n:"A",v:"A"},{n:"B",v:"B"},{n:"C",v:"C"},{n:"D",v:"D"},{n:"E",v:"E"},{n:"F",v:"F"},{n:"G",v:"G"},{n:"H",v:"H"},{n:"I",v:"I"},{n:"J",v:"J"},{n:"K",v:"K"},{n:"L",v:"L"},{n:"M",v:"M"},{n:"N",v:"N"},{n:"O",v:"O"},{n:"P",v:"P"},{n:"Q",v:"Q"},{n:"R",v:"R"},{n:"S",v:"S"},{n:"T",v:"T"},{n:"U",v:"U"},{n:"V",v:"V"},{n:"W",v:"W"},{n:"X",v:"X"},{n:"Y",v:"Y"},{n:"Z",v:"Z"}]},{key:"by",name:"排序",value:[{n:"时间",v:"time"},{n:"人气",v:"hits"},{n:"评分",v:"score"}]}]}})}async function homeVod(){var html=await request(url+"/vodshow/2--hits---------.html");const $=load(html);html=$("div.myui-panel_bd > ul.myui-vodlist > li"),html=_.map(html,item=>{var it=$(item).find("a:first")[0],item=$($(item).find("span.pic-text")[0]).text().trim();return{vod_id:it.attribs.href.replace(/.*?\/voddetail\/(.*).html/g,"$1"),vod_name:it.attribs.title,vod_pic:it.attribs["data-original"],vod_remarks:item||""}});return JSON.stringify({list:html})}async function category(tid,pg,filter,extend){pg<=0&&(pg=1);tid=await request(url+"/vodshow/"+(extend.CateId||tid)+"-"+(extend.area||"")+"-"+(extend.by||"time")+"-"+(extend.class||"")+"-"+(extend.lang||"")+"-"+(extend.letter||"")+"---"+pg+"---"+(extend.year||"")+".html");const $=load(tid);extend=$("div.myui-panel_bd > ul.myui-vodlist > li"),tid=_.map(extend,item=>{var it=$(item).find("a:first")[0],item=$($(item).find("span.pic-text")[0]).text().trim();return{vod_id:it.attribs.href.replace(/.*?\/voddetail\/(.*).html/g,"$1"),vod_name:it.attribs.title,vod_pic:it.attribs["data-original"],vod_remarks:item||""}}),extend=0<$("ul.myui-page > li > a:contains(下一页)").length?parseInt(pg)+1:parseInt(pg);return JSON.stringify({page:parseInt(pg),pagecount:extend,limit:24,total:24*extend,list:tid})}async function detail(id){var html=await request(url+"/voddetail/"+id+".html"),html=load(html),id={vod_id:id,vod_name:html("h1:first").text().trim(),vod_type:html(".myui-content__detail p:first a").text(),vod_actor:html(".myui-content__detail p:nth-child(5)").text().replace("主演:",""),vod_director:html(".myui-content__detail p:nth-child(6)").text().replace("导演:",""),vod_pic:html("div.myui-content__thumb img:first").attr("data-original"),vod_remarks:html("#rating:first span").text().replace(/\s{2,}/g," "),vod_content:html("span.data").text().trim()},html=_.map(html("ul.sort-list > li > a"),it=>it.children[0].data+"$"+it.attribs.href.replace(/\/vodplay\/(.*).html/g,"$1"));return id.vod_play_from=key,id.vod_play_url=html.join("#"),JSON.stringify({list:[id]})}async function play(flag,id,flags){id=await request(url+"/vodplay/"+id+".html"),id=load(id),id=JSON.parse(id("script:contains(player_)").html().replace("var player_data=","")).url.replace("index.m3u8","hls/index.m3u8");return JSON.stringify({parse:0,url:id})}async function search(wd,quick){var videos=[];for(const vod of JSON.parse(await request(url+"/index.php/ajax/suggest?mid=1&wd="+wd)).list)videos.push({vod_id:vod.id,vod_name:vod.name,vod_pic:vod.pic,vod_remarks:""});return JSON.stringify({list:videos})}function __jsEvalReturn(){return{init:init,home:home,homeVod:homeVod,category:category,detail:detail,play:play,search:search}}export{__jsEvalReturn};
|