From e5e5a86f8e95a229d4c95bf2e1037aa10a6861bd Mon Sep 17 00:00:00 2001 From: yeyin Date: Sun, 12 Oct 2025 14:54:46 +0200 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E6=96=87=E4=BB=B6=E8=87=B3?= =?UTF-8?q?=20=E5=A4=A9=E5=BE=AE=E5=BD=B1=E8=A7=86/js?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 天微影视/js/央视大全.js | 211 ++++++++++++++++++++++++++++++++++++++++ 天微影视/js/央视少儿.js | 97 ++++++++++++++++++ 天微影视/js/央视新闻.js | 94 ++++++++++++++++++ 天微影视/js/星芽短剧.js | 110 +++++++++++++++++++++ 天微影视/js/武享吧.js | 36 +++++++ 5 files changed, 548 insertions(+) create mode 100644 天微影视/js/央视大全.js create mode 100644 天微影视/js/央视少儿.js create mode 100644 天微影视/js/央视新闻.js create mode 100644 天微影视/js/星芽短剧.js create mode 100644 天微影视/js/武享吧.js diff --git a/天微影视/js/央视大全.js b/天微影视/js/央视大全.js new file mode 100644 index 0000000..ea36951 --- /dev/null +++ b/天微影视/js/央视大全.js @@ -0,0 +1,211 @@ +var rule = { + title:'央视频', + host:'https://api.cntv.cn', + homeUrl: '/lanmu/columnSearch?&fl=&fc=&cid=&p=1&n=500&serviceId=tvcctv&t=json', + url:'/list/getVideoAlbumList?fyfilter&area=&letter=&n=24&serviceId=tvcctv&t=json', + searchUrl:'', + searchable:0, + quickSearch:0, + class_name: '栏目大全&特别节目&纪录片&电视剧&动画片', + class_url: '栏目大全&特别节目&纪录片&电视剧&动画片', + filterable: 1, + filter_url: 'channel={{fl.channel}}&sc={{fl.sc}}&year={{fl.year}}', + filter: { + "纪录片":[ + {"key":"channel","name":"频道","value":[{"n":"全部","v":""},{"n":"CCTV-1综合","v":"CCTV-1综合,CCTV-1高清,CCTV-1综合高清"},{"n":"CCTV-2财经","v":"CCTV-2财经,CCTV-2高清,CCTV-2财经高清"},{"n":"CCTV-3综艺","v":"CCTV-3综艺,CCTV-3高清,CCTV-3综艺高清"},{"n":"CCTV-4中文国际","v":"CCTV-4中文国际,CCTV-4高清,CCTV-4中文国际(亚)高清"},{"n":"CCTV-5体育","v":"CCTV-5体育,CCTV-5高清,CCTV-5体育高清"},{"n":"CCTV-6电影","v":"CCTV-6电影,CCTV-6高清,CCTV-6电影高清"},{"n":"CCTV-7国防军事","v":"CCTV-7国防军事,CCTV-7高清,CCTV-7国防军事高清"},{"n":"CCTV-8电视剧","v":"CCTV-8电视剧,CCTV-8高清,CCTV-8电视剧高清"},{"n":"CCTV-9纪录","v":"CCTV-9纪录,CCTV-9高清,CCTV-9纪录高清"},{"n":"CCTV-10科教","v":"CCTV-10科教,CCTV-10高清,CCTV-10科教高清"},{"n":"CCTV-11戏曲","v":"CCTV-11戏曲,CCTV-11高清,CCTV-11戏曲高清"},{"n":"CCTV-12社会与法","v":"CCTV-12社会与法,CCTV-12高清,CCTV-12社会与法高清"},{"n":"CCTV-13新闻","v":"CCTV-13新闻,CCTV-13高清,CCTV-13新闻高清"},{"n":"CCTV-14少儿","v":"CCTV-14少儿,CCTV-14高清,CCTV-14少儿高清"},{"n":"CCTV-15音乐","v":"CCTV-15音乐,CCTV-15高清,CCTV-15音乐高清"},{"n":"CCTV-17农业农村","v":"CCTV-17农业农村,高清,高清"}]}, + {"key":"sc","name":"类型","value":[{"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":"2024","v":"2024"},{"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"},{"n":"2016","v":"2016"},{"n":"2015","v":"2015"},{"n":"2014","v":"2014"},{"n":"2013","v":"2013"},{"n":"2012","v":"2012"},{"n":"2011","v":"2011"},{"n":"2010","v":"2010"},{"n":"2009","v":"2009"},{"n":"2008","v":"2008"}]}, + ], + "特别节目":[ + {"key":"channel","name":"频道","value":[{"n":"全部","v":""},{"n":"CCTV-1综合","v":"CCTV-1综合,CCTV-1高清,CCTV-1综合高清"},{"n":"CCTV-2财经","v":"CCTV-2财经,CCTV-2高清,CCTV-2财经高清"},{"n":"CCTV-3综艺","v":"CCTV-3综艺,CCTV-3高清,CCTV-3综艺高清"},{"n":"CCTV-4中文国际","v":"CCTV-4中文国际,CCTV-4高清,CCTV-4中文国际(亚)高清"},{"n":"CCTV-5体育","v":"CCTV-5体育,CCTV-5高清,CCTV-5体育高清"},{"n":"CCTV-6电影","v":"CCTV-6电影,CCTV-6高清,CCTV-6电影高清"},{"n":"CCTV-7国防军事","v":"CCTV-7国防军事,CCTV-7高清,CCTV-7国防军事高清"},{"n":"CCTV-8电视剧","v":"CCTV-8电视剧,CCTV-8高清,CCTV-8电视剧高清"},{"n":"CCTV-9纪录","v":"CCTV-9纪录,CCTV-9高清,CCTV-9纪录高清"},{"n":"CCTV-10科教","v":"CCTV-10科教,CCTV-10高清,CCTV-10科教高清"},{"n":"CCTV-11戏曲","v":"CCTV-11戏曲,CCTV-11高清,CCTV-11戏曲高清"},{"n":"CCTV-12社会与法","v":"CCTV-12社会与法,CCTV-12高清,CCTV-12社会与法高清"},{"n":"CCTV-13新闻","v":"CCTV-13新闻,CCTV-13高清,CCTV-13新闻高清"},{"n":"CCTV-14少儿","v":"CCTV-14少儿,CCTV-14高清,CCTV-14少儿高清"},{"n":"CCTV-15音乐","v":"CCTV-15音乐,CCTV-15高清,CCTV-15音乐高清"},{"n":"CCTV-17农业农村","v":"CCTV-17农业农村,高清,高清"}]}, + {"key":"sc","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":"sc","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":"其他"}]}, + {"key":"year","name":"年份","value":[{"n":"全部","v":""},{"n":"2024","v":"2024"},{"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"},{"n":"2016","v":"2016"},{"n":"2015","v":"2015"},{"n":"2014","v":"2014"},{"n":"2013","v":"2013"},{"n":"2012","v":"2012"},{"n":"2011","v":"2011"},{"n":"2010","v":"2010"},{"n":"2009","v":"2009"},{"n":"2008","v":"2008"},{"n":"2007","v":"2007"},{"n":"2006","v":"2006"},{"n":"2005","v":"2005"},{"n":"2004","v":"2004"},{"n":"2003","v":"2003"},{"n":"2002","v":"2002"},{"n":"2001","v":"2001"},{"n":"2000","v":"2000"},{"n":"1999","v":"1999"},{"n":"1998","v":"1998"},{"n":"1997","v":"1997"}]}, + ], + }, + headers:{ + 'User-Agent':'PC_UA' + }, + timeout:10000, + play_parse:true, + + lazy: $js.toString(() => { + let id = input.split("|")[0]; + let k4 = input.split("|")[1]; + let fc = input.split("|")[2]; +if (k4 === '7' && fc!== '体育'){ + input = 'https://hls.cntv.myhwcdn.cn/asp/hls/850/0303000a/3/default/' + id + '/850.m3u8'; + } else { + input = 'https://hls.cntv.myhwcdn.cn/asp/hls/850/0303000a/3/default/' + id + '/850.m3u8'; + + } +//https://vdn.apps.cntv.cn/api/getHttpVideoInfo.do?pid='+input +}), + //海阔 + /* + lazy: $js.toString(() => { + input=JSON.parse(request('https://vdn.apps.cntv.cn/api/getHttpVideoInfo.do?pid='+input)).hls_url; + id = input.split('/')[9]; + input = 'https://hls.cntv.myalicdn.com//asp/hls/2000/0303000a/3/default/' + id + '/2000.m3u8'; + }), + */ +//影视 +//lazy: $js.toString(() => { +//input=JSON.parse(request('https://vdn.apps.cntv.cn/api/getHttpVideoInfo.do?pid='+input)).hls_url.replaceAll('main','2000') +//.replaceAll('cntv.lxdns','cntv.myalicdn').replaceAll('n.cn','n.com').replaceAll('myhwcdn','myalicdn').replaceAll('kcdnvip','myalicdn').replaceAll('newcntv.qcloudcdn','cntv.myalicdn') +//; +//}), + + limit:6, + double:false, + + 推荐: $js.toString(() => { + var d = []; + var list = JSON.parse(request(input)).response.docs; + + list.forEach(it => { + // 一级标题 + let title1 = it.column_name; + // 一级描述 + let desc1 = it.channel_name; + // 一级图片URL + let picUrl1 = it.column_logo; + // 一级URL(id 地区 类型 标题 演员 年份 频道 简介 图片 更新至) + let url1 = it.lastVIDE.videoSharedCode + '|' + '' + '|' + it.column_firstclass + '|' + it.column_name + '|' + '' + '|' + it.column_playdate + '|' + it.channel_name + '|' + it.column_brief + '|' + it.column_logo + '|' + '' + '|' + it.lastVIDE.videoTitle; + + d.push({ + desc : desc1, + title : title1, + pic_url : picUrl1, + url : url1 + }) + }) + setResult(d); + }), + + + 一级: $js.toString(() => { + var d = []; + if(MY_CATE==='栏目大全') { + var list = JSON.parse(request(HOST+'/lanmu/columnSearch?&fl=&fc=&cid=&p='+MY_PAGE+'&n=500&serviceId=tvcctv&t=json')).response.docs; + list.forEach(it => { + // 一级标题 + let title1 = it.column_name; + // 一级描述 + let desc1 = it.channel_name; + // 一级图片URL + let picUrl1 = it.column_logo; + // 一级URL(id 地区 类型 标题 演员 年份 频道 简介 图片 更新至) + let url1 = it.lastVIDE.videoSharedCode + '|' + '' + '|' + it.column_firstclass + '|' + it.column_name + '|' + '' + '|' + it.column_playdate + '|' + it.channel_name + '|' + it.column_brief + '|' + it.column_logo + '|' + '' + '|' + it.lastVIDE.videoTitle; + d.push({ + desc : desc1, + title : title1, + pic_url : picUrl1, + url : url1 + }) + }) + } + else { + var channelMap = { + "特别节目": "CHAL1460955953877151", + "纪录片": "CHAL1460955924871139", + "电视剧": "CHAL1460955853485115", + "动画片": "CHAL1460955899450127", + }; + var list = JSON.parse(request(input+'&channelid='+channelMap[MY_CATE]+'&fc='+MY_CATE+'&p='+MY_PAGE)).data.list; + list.forEach(it => { + // 一级标题 + let title1 = it.title; + // 一级描述 + let desc1 = it.sc + ((typeof it.year==='undefined' || it.year==='')?'':('•'+it.year)) + ((typeof it.count==='undefined' || it.count==='')?'':('•共' + it.count + '集')); + // 一级图片URL + let picUrl1 = it.image; + // 一级URL(id 地区 类型 标题 演员 年份 频道 简介 图片 集数) + let url1 = it.id + '|' + it.area + '|' + it.sc + '|' + it.title + '|' + it.actors + '|' + it.year + '|' + it.channel + '|' + it.brief + '|' + it.image + '|' + it.count + '|' + '' + '|' + MY_CATE; + d.push({ + desc : desc1, + title : title1, + pic_url : picUrl1, + url : url1 + }) + }) + } + setResult(d); + }), + + 二级: $js.toString(() => { + let info = input.split("|"); + + VOD = { + vod_id: info[0], + vod_name: info[3], + vod_pic: info[8], + type_name: info[2]==='undefined'?'':info[2], + vod_year: info[5]==='undefined'?'':info[5], + vod_area: info[1]==='undefined'?'':info[1], + vod_remarks: info[9]===''?('更新至'+info[10]):('共'+info[9]+'集'), + vod_director: info[6]==='undefined'?'':info[6], + vod_actor: info[4]==='undefined'?'':info[4], + vod_content: info[7]==='undefined'?'':info[7], + }; + var modeMap = { + "特别节目": "0", + "纪录片": "0", + "电视剧": "0", + "动画片": "1", + }; + var ctid = info[0].replace('https://api.cntv.cn/lanmu/',''); + var link = 'https://api.cntv.cn/NewVideo/getVideoListByAlbumIdNew?id='+ctid+'&serviceId=tvcctv&p=1&n=100&mode='+modeMap[info[11]]+'&pub=1'; + var html = JSON.parse(request(link)); + var playUrls; + if(html.errcode==='1001'){ + var guid = info[0].replace('https://api.cntv.cn/lanmu/',''); + var link1 = 'https://api.cntv.cn/video/videoinfoByGuid?guid='+guid+'&serviceId=tvcctv'; + ctid = JSON.parse(request(link1)).ctid.replace('https://api.cntv.cn/lanmu/',''); + var link2 = 'https://api.cntv.cn/NewVideo/getVideoListByColumn?id='+ctid+'&d=&p=1&n=100&sort=desc&mode=0&serviceId=tvcctv&t=json'; + playUrls = JSON.parse(request(link2)).data.list; + + } else { + playUrls = html.data.list; + // 获取更多数据,暂不需要 + var flag = ''; + if(playUrls===''){ + flag = 'true'; + } + var page = 1; + while(flag===''){ + page = page+1; + var burl = 'https://api.cntv.cn/NewVideo/getVideoListByAlbumIdNew?id='+ctid+'&serviceId=tvcctv&p='+page+'&n=100&mode='+modeMap[info[11]]+'&pub=1'; + var list = JSON.parse(request(burl)).data.list; + if (list.length!==0){ + list.forEach(it => { + playUrls.push(it); + }) + continue; + }else{ + flag='true'; + break; + } + } + } + + let playFrom = []; + let playList = []; + playFrom.append('央视频'); + playUrls.forEach(it => { + playList.append(playUrls.map(function(it) { + return it.title + "$" + it.guid + }).join("#")) + }); + + // 最后封装所有线路 + let vod_play_from = playFrom.join('$$$'); + let vod_play_url = playList.join('$$$'); + VOD['vod_play_from'] = vod_play_from; + VOD['vod_play_url'] = vod_play_url; + }), + + 搜索:'', +} \ No newline at end of file diff --git a/天微影视/js/央视少儿.js b/天微影视/js/央视少儿.js new file mode 100644 index 0000000..01c6d7d --- /dev/null +++ b/天微影视/js/央视少儿.js @@ -0,0 +1,97 @@ +var rule = { + title:'央视频', + host:'https://api.cntv.cn', + homeUrl: '/lanmu/columnSearch?&fl=&fc=&cid=&p=1&n=500&serviceId=tvcctv&t=json', + // url:'/list/getVideoAlbumList?fyfilter&area=&letter=&n=24&serviceId=tvcctv&t=json', + url: '/NewVideo/getVideoListByColumn?id=fyclass&n=10&sort=desc&p=fypage&mode=0&serviceId=tvcctv', + searchUrl:'', + searchable:0, + quickSearch:0, + +class_name: '周末动画片&快乐体验&小小智慧树&智力快车&音乐快递&英雄出少年&快乐大巴&动漫世界&新闻袋袋裤&大风车&七巧板&大手牵小手&智慧树&动感特区&动画大放映&看我 72 变&快乐童行&风车剧场', +class_url:'TOPC1451559836238828&TOPC1451559479171411&TOPC1451559205464876&TOPC1451559756374759&TOPC1451559666055645&TOPC1451559695702690&TOPC1451559161446811&TOPC1451559448233349&TOPC1451559603261584&TOPC1451558929123462&TOPC1451559569040502&TOPC1451558967135492&TOPC1451447359806385&TOPC1451559378830189&TOPC1451559025546574&TOPC1451559131256781&TOPC1628144739712839&TOPC1573528152700717', + + filterable: 1, + headers:{ + 'User-Agent':'PC_UA' + }, + timeout:10000, + play_parse:true, + + limit:6, + double:false, +/* + 推荐: $js.toString(() => { + var d = []; + var list = JSON.parse(request(input)).response.docs; + + list.forEach(it => { + // 一级标题 + let title1 = it.column_name; + // 一级描述 + let desc1 = it.channel_name; + // 一级图片URL + let picUrl1 = it.column_logo; + // 一级URL(id 地区 类型 标题 演员 年份 频道 简介 图片 更新至) + let url1 = it.lastVIDE.videoSharedCode + '|' + '' + '|' + it.column_firstclass + '|' + it.column_name + '|' + '' + '|' + it.column_playdate + '|' + it.channel_name + '|' + it.column_brief + '|' + it.column_logo + '|' + '' + '|' + it.lastVIDE.videoTitle; + + d.push({ + desc : desc1, + title : title1, + pic_url : picUrl1, + url : url1 + }) + }) + setResult(d); + }), +*/ + + 一级: $js.toString(() => { + + var d = []; + + var list = JSON.parse(request(input)).data.list; + list.forEach(it => { + //一级id + let guid1 = it.guid; + // 一级标题 + let title1 = it.title + // 一级描述 + let desc1 = it.time; + // 一级图片URL + let picUrl1 = it.image; + // 一级URL(id 地区 类型 标题 演员 年份 频道 简介 图片 集数) + let url1 =it.guid + '|' + it.id + '|' + it.time + '|' + it.title + '|' + it.length + '|' + it.image + '|' + it.focus_date + '|' + it.brief + '|' + it.url + '|' + '' + '|' + MY_CATE; + d.push({ + desc : desc1, + title : title1, + pic_url : picUrl1, + guid : guid1, + url : url1 + }) + }) + setResult(d); + }), + +二级 : $js.toString(() => { +let info = input.split("|"); +let guid = info[0].replaceAll('https://api.cntv.cn/lanmu/', ''); + VOD = { + vod_id: info[1], + vod_name: info[3], + vod_pic: info[5], + type_name: info[2], + vod_year: info[2], + vod_area: info[1], + vod_remarks: 'ƪ(˘⌣˘)ʃ天微', + vod_director: 'ƪ(˘⌣˘)ʃ天微', + vod_actor: 'ƪ(˘⌣˘)ʃ天微', + vod_content: info[7], + vod_play_from: '央视频', + //https://hls.cntv.myalicdn.com//asp/hls/2000/0303000a/3/default/https://api.cntv.cn/lanmu/1a01871d6d5f4d4bbe82b9c62650f100/2000.m3u8 + vod_play_url: '立即播放$https://hls.cntv.myhwcdn.cn/asp/hls/850/0303000a/3/default/' + guid + '/850.m3u8' + }; + +}), + 搜索:'', +} \ No newline at end of file diff --git a/天微影视/js/央视新闻.js b/天微影视/js/央视新闻.js new file mode 100644 index 0000000..eea3582 --- /dev/null +++ b/天微影视/js/央视新闻.js @@ -0,0 +1,94 @@ +var rule = { + title:'央视频', + host:'https://api.cntv.cn', + homeUrl: '/lanmu/columnSearch?&fl=&fc=&cid=&p=1&n=500&serviceId=tvcctv&t=json', + // url:'/list/getVideoAlbumList?fyfilter&area=&letter=&n=24&serviceId=tvcctv&t=json', + url: '/NewVideo/getVideoListByColumn?id=fyclass&n=10&sort=desc&p=fypage&mode=0&serviceId=tvcctv', + searchUrl:'', + searchable:0, + quickSearch:0, + class_name: '焦点访谈&每周质量报告&午夜新闻&新闻调查&新闻周刊&面对面&法治在线&新闻30分&新闻1+1&军情时间到&国际时讯&新闻直播间&朝闻天下&世界周刊&高端访谈&环球视线&共同关注&24小时&东方时空', +class_url:'TOPC1451558976694518&TOPC1451558650605123&TOPC1451558779639282&TOPC1451558819463311&TOPC1451559180488841&TOPC1451559038345600&TOPC1451558590627940&TOPC1451559097947700&TOPC1451559066181661&TOPC1462504102545692&TOPC1451558887804404&TOPC1451559129520755&TOPC1451558496100826&TOPC1451558687534149&TOPC1665739007799851&TOPC1451558926200436&TOPC1451558858788377&TOPC1451558428005729&TOPC1451558532019883', + filterable: 1, + headers:{ + 'User-Agent':'PC_UA' + }, + timeout:10000, + play_parse:true, + + limit:6, + double:false, +/* + 推荐: $js.toString(() => { + var d = []; + var list = JSON.parse(request(input)).response.docs; + + list.forEach(it => { + // 一级标题 + let title1 = it.column_name; + // 一级描述 + let desc1 = it.channel_name; + // 一级图片URL + let picUrl1 = it.column_logo; + // 一级URL(id 地区 类型 标题 演员 年份 频道 简介 图片 更新至) + let url1 = it.lastVIDE.videoSharedCode + '|' + '' + '|' + it.column_firstclass + '|' + it.column_name + '|' + '' + '|' + it.column_playdate + '|' + it.channel_name + '|' + it.column_brief + '|' + it.column_logo + '|' + '' + '|' + it.lastVIDE.videoTitle; + + d.push({ + desc : desc1, + title : title1, + pic_url : picUrl1, + url : url1 + }) + }) + setResult(d); + }), +*/ + + 一级: $js.toString(() => { + + var d = []; + + var list = JSON.parse(request(input)).data.list; + list.forEach(it => { + //一级id + let guid1 = it.guid; + // 一级标题 + let title1 = it.title + // 一级描述 + let desc1 = it.time; + // 一级图片URL + let picUrl1 = it.image; + // 一级URL(id 地区 类型 标题 演员 年份 频道 简介 图片 集数) + let url1 =it.guid + '|' + it.id + '|' + it.time + '|' + it.title + '|' + it.length + '|' + it.image + '|' + it.focus_date + '|' + it.brief + '|' + it.url + '|' + '' + '|' + MY_CATE; + d.push({ + desc : desc1, + title : title1, + pic_url : picUrl1, + guid : guid1, + url : url1 + }) + }) + setResult(d); + }), + +二级 : $js.toString(() => { +let info = input.split("|"); +let guid = info[0].replaceAll('https://api.cntv.cn/lanmu/', ''); + VOD = { + vod_id: info[1], + vod_name: info[3], + vod_pic: info[5], + type_name: info[2], + vod_year: info[2], + vod_area: info[1], + vod_remarks: 'ƪ(˘⌣˘)ʃ天微', + vod_director: 'ƪ(˘⌣˘)ʃ天微', + vod_actor: 'ƪ(˘⌣˘)ʃ天微', + vod_content: info[7], + vod_play_from: '央视频', + vod_play_url: '立即播放$https://hls.cntv.myhwcdn.cn/asp/hls/850/0303000a/3/default/' + guid + '/850.m3u8' + }; + +}), + 搜索:'', +} \ No newline at end of file diff --git a/天微影视/js/星芽短剧.js b/天微影视/js/星芽短剧.js new file mode 100644 index 0000000..6f15d58 --- /dev/null +++ b/天微影视/js/星芽短剧.js @@ -0,0 +1,110 @@ +globalThis.getHeaders = function () { + let tkurl = 'https://app.whjzjx.cn/v1/account/login'; + let opt = { + headers: { + 'user-agent': 'okhttp/4.10.0', + 'user_agent': 'Mozilla/5.0 (Linux; Android 13; PEQM00 Build/TP1A.220905.001; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/103.0.5060.129 Mobile Safari/537.36', + 'Host': 'app.whjzjx.cn', + 'Connection': 'keep-alive', + 'Content-Type': 'application/x-www-form-urlencoded', + 'Content-Length': '40', + 'Accept-Encoding': 'gzip' + }, + method: 'POST', + body: 'device=2cdbf9265f4d63b82a30735793127c962' + }; + let tk = JSON.parse(request(tkurl,opt)).data.token; + let kheader = { + 'User-Agent': 'Mozilla/5.0 (Linux; Android 13; PEQM00 Build/TP1A.220905.001; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/103.0.5060.129 Mobile Safari/537.36', + 'authorization': tk, + 'Content-Type': 'application/json; charset=UTF-8' + }; + return kheader +} + +var rule = { +author: '小可乐/2410/第一版', +title: '星芽短剧', +类型: '影视', +host: 'https://app.whjzjx.cn', +hostJs: '', +headers: {'User-Agent': 'okhttp/4.10.0'}, +编码: 'utf-8', +timeout: 5000, + +homeUrl: '/cloud/v2/theater/home_page?theater_class_id=5&type=1&page_num=1&page_size=24', +url: '/cloud/v2/theater/home_page?theater_class_id=fyclass&type=1&fyfilter&page_num=fypage&page_size=24', +filter_url: '{{fl.class}}', +detailUrl: '', +searchUrl: '/v3/search', +searchable: 1, +quickSearch: 1, +filterable: 1, + +class_name: '会员精选&剧场&热播剧&新剧&星选好剧&阳光剧场', +class_url: '1&2&8&3&7&5', +filter_def: {}, + +play_parse: true, +lazy: `js: +if (/\\.(m3u8|mp4)/.test(input)) { + input = { jx: 0, parse: 0, url: input } +} else { + input = { jx: 0, parse: 1, url: input } +}`, + +limit: 9, +double: false, +推荐: '*', +一级: `js: +input = input.replace(/&{2,}/g,'&'); +let kjson = JSON.parse(request(input, {headers: getHeaders()})); +VODS = []; +let klists = kjson.data.list; +klists.forEach((it) => { + VODS.push({ + vod_name: it.theater.title, + vod_pic: it.theater.cover_url, + vod_remarks: it.theater.total + '集' + '|' + it.theater.theme, + vod_id: 'https://app.whjzjx.cn/v2/theater_parent/detail?theater_parent_id=' + it.theater.id + }) +}) +`, +二级: `js: +let kjson = JSON.parse(request(input, {headers: getHeaders()})); +let kplist = kjson.data.theaters.map((it) => { return it.num + '$' + it.son_video_url }); +VOD = { + vod_id: input, + vod_name: kjson.data.title, + vod_pic: kjson.data.cover_url, + type_name: kjson.data.desc_tags.join('|'), + vod_remarks: kjson.data.total + '集', + vod_year: '未知', + vod_area: '未知', + vod_director: '七星短剧', + vod_actor: kjson.data.filing, + vod_content: kjson.data.introduction, + vod_play_from: '⭐七星专线', + vod_play_url: kplist.join('#') +} +`, +搜索: `js: +let kjson = JSON.parse(request(input, {headers: getHeaders(), method: 'POST', body: {'text': KEY} })); +VODS = []; +let klists = kjson.data.theater.search_data; +klists.forEach((it) => { + VODS.push({ + vod_name: it.title, + vod_pic: it.cover_url, + vod_remarks: it.total + '集' + '|' + it.score_str, + vod_id: 'https://app.whjzjx.cn/v2/theater_parent/detail?theater_parent_id=' + it.id + }) +}) +`, + +filter: { +"1":[ +{"key":"class","name":"剧情","value":[{"n":"全部","v":"class2_ids=0"},{"n":"都市","v":"class2_ids=4"},{"n":"古装","v":"class2_ids=5"},{"n":"现代言情","v":"class2_ids=15"},{"n":"战神","v":"class2_ids=24"},{"n":"逆袭","v":"class2_ids=7"},{"n":"穿越","v":"class2_ids=17"},{"n":"历史","v":"class2_ids=40"},{"n":"赘婿","v":"class2_ids=26"},{"n":"神医","v":"class2_ids=25"},{"n":"重生","v":"class2_ids=6"},{"n":"甜宠","v":"class2_ids=33"},{"n":"古代言情","v":"class2_ids=37"},{"n":"玄幻","v":"class2_ids=35"},{"n":"萌宝","v":"class2_ids=9"},{"n":"脑洞","v":"class2_ids=32"},{"n":"亲情","v":"class2_ids=41"},{"n":"虐恋","v":"class2_ids=8"}]} +] +} +} \ No newline at end of file diff --git a/天微影视/js/武享吧.js b/天微影视/js/武享吧.js new file mode 100644 index 0000000..d9b5ba6 --- /dev/null +++ b/天微影视/js/武享吧.js @@ -0,0 +1,36 @@ +var rule = { + title:'武享吧', + host:'https://www.hula8.net', + url: '/fyclass/page/fypage', + searchUrl: '/page/fypage/?s=**', + searchable:2, + quickSearch:0, + headers:{ + 'User-Agent': 'PC_UA', + 'Referer': 'https://www.hula8.net/', + 'Cookie':'esc_search_captcha=1;result=12' + }, + timeout:5000,//网站的全局请求超时,默认是3000毫秒 + class_parse: '#menu-xinjian&&li;a&&Text;a&&href;net/(.*)', + play_parse:true, + cate_exclude:'首 页|赛事预告|美国格斗赛|亚洲格斗赛|其他格斗赛|日本搏击赛|裸拳赛', + limit:6, + 推荐: 'div.apc-grid-item;*;*;.views&&Text;a&&href', + 一级: '.site-main&&article;img&&alt;img&&data-original;.grid-inf-l&&Text;a&&href', + 二级: { + "title": "h1&&Text;.module-info-tag&&Text", + "img": ".aligncenter&&data-original", + "desc": ";;;.views:eq(0)&&Text;", + "content": "h1&&Text", + "tabs": "js:TABS=['道长在线']", + "lists": `js: + var html = JSON.parse(request(input).match(/var bevideo_vids_.*?=({[\\s\\S]*?});/)[1]); + let list = []; + list = html.m3u8dplayer.map(function(item) { + return item.pre + "$" + item.video + }); + LISTS = [list]; + ` + }, + 搜索: '*;*;*;.entry-meta&&Text;*', +} \ No newline at end of file