diff --git a/lib/310.js b/lib/310.js new file mode 100644 index 0000000..0f73404 --- /dev/null +++ b/lib/310.js @@ -0,0 +1,22 @@ +var rule = { + title:'310直播', + host:'http://www.310.tv', + url:'/?s=0&t=1&a=fyclass&g=fypage', + searchUrl:'', + searchable:0, + quickSearch:0, + class_name:'热门&足球&篮球', + class_url:'0&1&2', + headers:{ + 'User-Agent':'MOBILE_UA' + }, + timeout:5000, + play_parse:false, + lazy:'', + limit:6, + double:false, + 推荐:'*', + 一级:'.list_content a;.jiabifeng&&p:lt(5)&&Text;.feleimg img&&src;a&&t-nzf-o;a&&href', + 二级:'*', + 搜索:'', +} \ No newline at end of file diff --git a/lib/310.txt b/lib/310.txt new file mode 100644 index 0000000..b62860d --- /dev/null +++ b/lib/310.txt @@ -0,0 +1 @@ +**dmFyIHJ1bGUgPSB7CiAgICB0aXRsZTonMzEw55u05pKtJywKICAgIGhvc3Q6J2h0dHA6Ly93d3cuMzEwLnR2JywKICAgIHVybDonLz9zPTAmdD0xJmE9ZnljbGFzcyZnPWZ5cGFnZScsCiAgICBzZWFyY2hVcmw6JycsCiAgICBzZWFyY2hhYmxlOjAsCiAgICBxdWlja1NlYXJjaDowLAogICAgY2xhc3NfbmFtZTon54Ot6ZeoJui2s+eQgybnr67nkIMnLAogICAgY2xhc3NfdXJsOicwJjEmMicsCiAgICBoZWFkZXJzOnsKICAgICAgICAnVXNlci1BZ2VudCc6J01PQklMRV9VQScKICAgIH0sCiAgICB0aW1lb3V0OjUwMDAsCiAgICBwbGF5X3BhcnNlOmZhbHNlLAogICAgbGF6eTonJywKICAgIGxpbWl0OjYsCiAgICBkb3VibGU6ZmFsc2UsCiAgICDmjqjojZA6JyonLAogICAg5LiA57qnOicubGlzdF9jb250ZW50IGE7LmppYWJpZmVuZyYmcDpsdCg1KSYmVGV4dDsuZmVsZWltZyBpbWcmJnNyYzthJiZ0LW56Zi1vO2EmJmhyZWYnLAogICAg5LqM57qnOicqJywKICAgIOaQnOe0ojonJywKfQ== \ No newline at end of file diff --git a/lib/310直播.js b/lib/310直播.js new file mode 100644 index 0000000..0f73404 --- /dev/null +++ b/lib/310直播.js @@ -0,0 +1,22 @@ +var rule = { + title:'310直播', + host:'http://www.310.tv', + url:'/?s=0&t=1&a=fyclass&g=fypage', + searchUrl:'', + searchable:0, + quickSearch:0, + class_name:'热门&足球&篮球', + class_url:'0&1&2', + headers:{ + 'User-Agent':'MOBILE_UA' + }, + timeout:5000, + play_parse:false, + lazy:'', + limit:6, + double:false, + 推荐:'*', + 一级:'.list_content a;.jiabifeng&&p:lt(5)&&Text;.feleimg img&&src;a&&t-nzf-o;a&&href', + 二级:'*', + 搜索:'', +} \ No newline at end of file diff --git a/lib/360吧.js b/lib/360吧.js new file mode 100644 index 0000000..b6d63d6 --- /dev/null +++ b/lib/360吧.js @@ -0,0 +1,73 @@ +globalThis.getVideos = function(link, key) { + let html = request(link); + let json = JSON.parse(html); + let data = json.data; + data = data[key]; + let videos = data.map((n) => { + let id = n.url; + let name = n.league_name_zh + ' ' + n.home_team_zh + ' VS ' + n.away_team_zh; + let pic = n.cover; + let remarks = n.nickname; + return { + vod_id: id, + vod_name: name, + vod_pic: pic, + vod_remarks: remarks, + }; + }); + return videos +} +var rule = { + 类型: '影视', //影视|听书|漫画|小说 + title: '360吧[球]', + host: 'https://m.360ba.co/', + homeUrl: '/api/web/h5_index', + url: '/api/web/live_lists/fyclass', + searchUrl: '/api/web/search?keyword=**', + searchable: 2, + quickSearch: 0, + filterable: 0, + headers: { + 'User-Agent': 'MOBILE_UA', + }, + timeout: 5000, + class_name: '全部&足球&篮球&综合', + class_url: '1&2&3&99', + play_parse: true, + pagecount: { + "1": 1, + "2": 1, + "3": 1, + "99": 1, + }, + lazy: $js.toString(() => { + input = { + parse: 0, + url: input, + header: rule.headers + }; + }), + 预处理: $js.toString(() => { + Object.assign(rule.headers, { + 'Referer': rule.host, + 'Origin': rule.host, + }); + }), + 推荐: $js.toString(() => { + VODS = getVideos(input, 'hot_matches'); + + }), + 一级: $js.toString(() => { + VODS = []; + if (MY_PAGE <= 1) { + VODS = getVideos(input, 'data'); + } + }), + 二级: '*', + 搜索: $js.toString(() => { + VODS = []; + if (MY_PAGE <= 1) { + VODS = getVideos(input, 'ball'); + } + }), +} \ No newline at end of file diff --git a/lib/88看球.js b/lib/88看球.js new file mode 100644 index 0000000..c552ea3 --- /dev/null +++ b/lib/88看球.js @@ -0,0 +1,61 @@ +var rule = { + title:'88看球', + // host:'http://www.88kanqiu.cc', + host:'http://www.88kanqiu.bar/', + url: "/match/fyclass/live", + searchUrl: "", + searchable: 0, + quickSearch: 0, + class_parse: ".nav-pills li;a&&Text;a&&href;/match/(\\d+)/live", + headers: { + "User-Agent": "PC_UA", + }, + timeout: 5000, + play_parse: true, + pagecount:{"1":1,"2":1,"4":1,"22":1,"8":1,"9":1,"10":1,"14":1,"15":1,"12":1,"13":1,"16":1,"28":1,"7":1,"11":1,"33":1,"27":1,"23":1,"26":1,"3":1,"21":1,"18":1}, + lazy: `js: + if(/embed=/.test(input)) { + let url = input.match(/embed=(.*?)&/)[1]; + url = base64Decode(url); + input = { + jx:0, + url: url.split('#')[0], + parse: 0 + } + } else if (/\?url=/.test(input)){ + input = { + jx:0, + url: input.split('?url=')[1].split('#')[0], + parse: 0 + } + } else { + input + } + `, + limit: 6, + double: false, + 推荐: "*", + 一级: ".list-group .group-game-item;.d-none&&Text;img&&src;.btn&&Text;a&&href", + 二级: { + title: ".game-info-container&&Text;.customer-navbar-nav li&&Text", + img: "img&&src", + desc: ";;;div.team-name:eq(0)&&Text;div.team-name:eq(1)&&Text", + content: "div.game-time&&Text", + tabs: "js:TABS=['实时直播']", + lists: `js: + LISTS = []; + let html = request(input.replace('play', 'play-url')); + let pdata = JSON.parse(html).data; + pdata = pdata.slice(6); + pdata = pdata.slice(0, -2); + pdata = base64Decode(pdata); + // log(pdata); + let jo = JSON.parse(pdata).links; + let d = jo.map(function (it) { + return it.name + '$' + urlencode(it.url) + }); + LISTS.push(d) + `, + }, + 搜索: "", +}; \ No newline at end of file