diff --git a/0821.json b/0821.json index 09ce5b46..d4ac9d8f 100644 --- a/0821.json +++ b/0821.json @@ -169,7 +169,7 @@ ], "rules":[ {"name":"農民嗅探","hosts":["toutiaovod.com"],"regex":["video/tos/cn"]}, -{"name":"proxy","hosts":["dmku.thefilehosting.com","raw.githubusercontent.com","googlevideo.com","cdn.v82u1l.com","cdn.iz8qkg.com","cdn.kin6c1.com","c.biggggg.com","c.olddddd.com","haiwaikan.com","www.histar.tv","youtube.com","uhibo.com",".*boku.*",".*nivod.*",".*ulivetv.*"]}, +{"name":"proxy","hosts":["epg.112114.xyz","dmku.thefilehosting.com","raw.githubusercontent.com","googlevideo.com","cdn.v82u1l.com","cdn.iz8qkg.com","cdn.kin6c1.com","c.biggggg.com","c.olddddd.com","haiwaikan.com","www.histar.tv","youtube.com","uhibo.com",".*boku.*",".*nivod.*",".*ulivetv.*"]}, {"name":"海外看","hosts":["haiwaikan"],"regex":["8.1748","10.0099","10.3333"]}, {"name":"暴风廣告","hosts":["bfzy","s5.bfzycdn"],"regex":["#EXT-X-DISCONTINUITY\\r*\\n*#EXTINF:3,[\\s\\S]*?#EXT-X-DISCONTINUITY"]}, {"name":"磁力廣告","hosts":["magnet"],"regex":["更多","社區","xuu","最新","最新","直播","更新","社区","有趣","有趣","英皇体育","全中文AV在线","澳门皇冠赌场","哥哥快来","美女荷官","裸聊","新片首发","UUE29"]}, diff --git a/0822.json b/0822.json index 53e9569c..27888edc 100644 --- a/0822.json +++ b/0822.json @@ -29,6 +29,6 @@ {"name":"爱豆","type":0,"url":"https://jx.aidouer.net/?url=","ext":{"header":{"user-agent":"Mozilla/5.0(Linux;Android13;V2049ABuild/TP1A.220624.014;wv)AppleWebKit/537.36(KHTML,likeGecko)Version/4.0Chrome/116.0.0.0MobileSafari/537.36","referer":"https://jiejie.uk/"}}} ], "rules":[ -{"name":"proxy","hosts":[["epg.112114.xyz","dmku.thefilehosting.com"]} +{"name":"proxy","hosts":["epg.112114.xyz","dmku.thefilehosting.com"]} ] } diff --git a/0825.json b/0825.json index 72144bec..29a169c3 100644 --- a/0825.json +++ b/0825.json @@ -85,7 +85,7 @@ ], "rules":[ {"name":"農民嗅探","hosts":["toutiaovod.com"],"regex":["video/tos/cn"]}, -{"name":"proxy","hosts":[["epg.112114.xyz","raw.githubusercontent.com","googlevideo.com","cdn.v82u1l.com","cdn.iz8qkg.com","cdn.kin6c1.com","c.biggggg.com","c.olddddd.com","haiwaikan.com","www.histar.tv","youtube.com","uhibo.com",".*boku.*",".*nivod.*",".*ulivetv.*"]}, +{"name":"proxy","hosts":["epg.112114.xyz","raw.githubusercontent.com","googlevideo.com","cdn.v82u1l.com","cdn.iz8qkg.com","cdn.kin6c1.com","c.biggggg.com","c.olddddd.com","haiwaikan.com","www.histar.tv","youtube.com","uhibo.com",".*boku.*",".*nivod.*",".*ulivetv.*"]}, {"name":"海外看","hosts":["haiwaikan"],"regex":["8.1748","10.0099","10.3333"]}, {"name":"暴风廣告","hosts":["bfzy","s5.bfzycdn"],"regex":["#EXT-X-DISCONTINUITY\\r*\\n*#EXTINF:3,[\\s\\S]*?#EXT-X-DISCONTINUITY"]}, {"name":"磁力廣告","hosts":["magnet"],"regex":["更多","社區","xuu","最新","最新","直播","更新","社区","有趣","有趣","英皇体育","全中文AV在线","澳门皇冠赌场","哥哥快来","美女荷官","裸聊","新片首发","UUE29"]}, diff --git a/0827.json b/0827.json index d77cbb7f..4807a7ff 100644 --- a/0827.json +++ b/0827.json @@ -1,5 +1,5 @@ { - "spider": "./jar/custom_spider.jar;md5;badfd75846df45e8cf06b53654312ccf", + "spider": "./jar/custom_spider.jar;md5;6aa99ddfd99dd2e5b68615edd29ddb43", "wallpaper": "http://饭太硬.top/深色壁纸/api.php", "sites": [ { @@ -30,6 +30,15 @@ "filter": "./json/wogg.json" } }, + { + "key": "賤賤", + "name": "賤賤", + "type": 3, + "api": "csp_Jianpian", + "searchable": 1, + "changeable": 1, + "ext": "./json/jianpian.json" + }, { "key": "獨播", "name": "獨播", @@ -39,38 +48,6 @@ "changeable": 1, "ext": "./json/duboku.json" }, - { - "key": "布雷", - "name": "布雷", - "type": 3, - "api": "https://fongmi.cachefly.net/FongMi/CatVodOpen/main/open/bulei_open.js", - "searchable": 1, - "changeable": 1 - }, - { - "key": "廠長", - "name": "廠長", - "type": 3, - "api": "https://fongmi.cachefly.net/FongMi/CatVodOpen/main/open/czzy_open.js", - "searchable": 1, - "changeable": 1 - }, - { - "key": "快看", - "name": "快看", - "type": 3, - "api": "https://fongmi.cachefly.net/FongMi/CatVodOpen/main/open/kkys_open.js", - "searchable": 1, - "changeable": 1 - }, - { - "key": "伊人", - "name": "伊人", - "type": 3, - "api": "https://fongmi.cachefly.net/FongMi/CatVodOpen/main/open/yrzj_open.js", - "searchable": 1, - "changeable": 1 - }, { "key": "五五", "name": "五五", @@ -85,7 +62,41 @@ "type": 1, "api": "https://haiwaikan.com/api.php/provide/vod", "searchable": 1, - "changeable": 1 + "changeable": 1, + "categories": [ + "日本动漫", + "国产动漫", + "欧美动漫", + "国产剧", + "韩剧", + "日剧", + "台剧", + "泰剧", + "港剧", + "欧美剧", + "动画电影", + "韩国综艺", + "国产综艺", + "日本综艺", + "欧美综艺", + "冒险片", + "剧情片", + "动作片", + "同性片", + "喜剧片", + "奇幻片", + "恐怖片", + "悬疑片", + "惊悚片", + "战争片", + "歌舞片", + "灾难片", + "爱情片", + "犯罪片", + "科幻片", + "纪录片", + "经典片" + ] }, { "key": "暴風", diff --git a/cat/js/config_open.json b/cat/js/config_open.json index 5e8276de..081fd1cc 100644 --- a/cat/js/config_open.json +++ b/cat/js/config_open.json @@ -26,6 +26,7 @@ {"key":"drpy_js_tuxiaobei_open","name":"少儿 | 兔小贝","type":3,"api":"assets://js/tuxiaobei_open.js"}, {"key":"drpy_js_ubestkid_open","name":"少儿 | 贝乐虎","type":3,"api":"assets://js/ubestkid_open.js"}, {"key":"sharenice","name":"聚合 | 短视频","type":3,"api":"assets://js/sharenice_open.js"}, +{"key":"douyu_open","name":"直播 | 斗鱼","type":3,"api":"assets://js/douyu_open.js"}, {"key":"mybili","name":"视频 | 哔哩综合","type":3,"api":"assets://js/mybili_open.js"}, {"key":"bili_open","name":"视频 | 我的哔哩","type":3,"api":"assets://js/bili_open.js","ext":{"categories":"沙雕动画#健身#音乐#舞蹈#风景#美食#科普#历史#法考#医考","cookie":"填自己的cookie"}}, {"key":"kuqimv","name":"MV | 酷奇","type":3,"api":"assets://js/kuqimv_open.js"}, diff --git a/cat/js/douyu_open.js b/cat/js/douyu_open.js new file mode 100644 index 00000000..1c8209be --- /dev/null +++ b/cat/js/douyu_open.js @@ -0,0 +1,132 @@ +import { Crypto, load, _ } from 'assets://js/lib/cat.js'; + +let key = 'douyu'; +let host = 'http://live.yj1211.work'; +let siteKey = ''; +let siteType = 0; + +const MOBILE_UA = 'Mozilla/5.0 (Linux; Android 11; M2007J3SC Build/RKQ1.200826.002; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/77.0.3865.120 MQQBrowser/6.2 TBS/045714 Mobile Safari/537.36'; + +async function requestRaw(reqUrl, redirect) { + let resRaw = await req(reqUrl, { + method: 'get', + headers: { + 'User-Agent': MOBILE_UA, + }, + redirect: redirect, + }); + return resRaw; +} + +async function request(reqUrl) { + let resRaw = await requestRaw(reqUrl, 1) + return resRaw.content; +} + +// cfg = {skey: siteKey, ext: extend} +async function init(cfg) { + +} + +async function home(filter) { + const classes = [ + { type_id: "热门游戏", type_name: "热门游戏" }, + { type_id: "主机游戏", type_name: "主机游戏" }, + { type_id: "原创IP", type_name: "原创IP" }, + ]; + const filterObj = {}; + return JSON.stringify({ + class: _.map(classes, (cls) => { + cls.land = 1; + cls.ratio = 1.78; + return cls; + }), + filters: filterObj, + }); +} + +async function homeVod() { + const data = JSON.parse(await request(host + '/api/live/getRecommendByPlatformArea?platform=douyu&size=20&area=热门游戏&page=1')); + let videos = _.map(data.data.list, (it) => { + return { + vod_id: it.roomId, + vod_name: it.roomName, + vod_pic: it.roomPic, + vod_remarks: it.ownerName, + } + }); + return JSON.stringify({ + list: videos, + }); +} + +async function category(tid, pg, filter, extend) { + if (pg <= 0 || typeof pg == 'undefined') pg = 1; + const data = JSON.parse(await request(host + '/api/live/getRecommendByPlatformArea?platform=douyu&size=20&area=' + tid + '&page=' + pg)); + let videos = _.map(data.data, (it) => { + return { + vod_id: it.roomId, + vod_name: it.roomName, + vod_pic: it.roomPic, + vod_remarks: it.ownerName, + } + }); + return JSON.stringify({ + page: parseInt(pg), + pagecount: 9999, + limit: 90, + total: 999999, + list: videos, + }); +} + +async function detail(id) { + const data = JSON.parse(await request(host + '/api/live/getRoomInfo?platform=douyu&roomId=' + id)); + const video = data.data; + let vod = { + vod_id: video.roomId, + vod_name: video.roomName, + vod_pic: video.roomPic, + vod_remarks: video.categoryName, + type_name: video.categoryName, + vod_director: video.ownerName, + vod_actor: '在线人数:' + video.online, + vod_content: "", + vod_year: "", + vod_area: "", + }; + vod.vod_play_from = video.platForm; + vod.vod_play_url = '原画$' + id; + return JSON.stringify({ + list: [vod], + }); +} + +async function play(flag, id, flags) { + const resp = await requestRaw('https://getplayurl.lmteam.repl.co/live?platform=douyu&rid=' + id, 0); + const headers = resp.headers; + let url = ""; + if (headers.hasOwnProperty('location')) { + url = headers.location; + } + return JSON.stringify({ + parse: 0, + url: url, + }); +} + +async function search(wd, quick) { + return '{}'; +} + +export function __jsEvalReturn() { + return { + init: init, + home: home, + homeVod: homeVod, + category: category, + detail: detail, + play: play, + search: search, + }; +} \ No newline at end of file diff --git a/jar/custom_spider.jar b/jar/custom_spider.jar index 2c0a6fd3..96326cde 100644 Binary files a/jar/custom_spider.jar and b/jar/custom_spider.jar differ diff --git a/json/jianpian.json b/json/jianpian.json new file mode 100644 index 00000000..fd364cae --- /dev/null +++ b/json/jianpian.json @@ -0,0 +1,482 @@ +{ + "0": [ + { + "key": "area", + "name": "地區", + "value": [ + { + "n": "全部", + "v": "0" + }, + { + "n": "国产", + "v": "1" + }, + { + "n": "中国香港", + "v": "3" + }, + { + "n": "中国台湾", + "v": "6" + }, + { + "n": "美国", + "v": "5" + }, + { + "n": "韩国", + "v": "18" + }, + { + "n": "日本", + "v": "2" + } + ] + }, + { + "key": "year", + "name": "年份", + "value": [ + { + "n": "全部", + "v": "0" + }, + { + "n": "2023", + "v": "153" + }, + { + "n": "2022", + "v": "101" + }, + { + "n": "2021", + "v": "118" + }, + { + "n": "2020", + "v": "16" + }, + { + "n": "2019", + "v": "7" + }, + { + "n": "2018", + "v": "2" + }, + { + "n": "2017", + "v": "3" + }, + { + "n": "2016", + "v": "22" + } + ] + }, + { + "key": "by", + "name": "排序", + "value": [ + { + "n": "热门", + "v": "hot" + }, + { + "n": "更新", + "v": "updata" + }, + { + "n": "评分", + "v": "rating" + } + ] + } + ], + "1": [ + { + "key": "area", + "name": "地區", + "value": [ + { + "n": "全部", + "v": "0" + }, + { + "n": "国产", + "v": "1" + }, + { + "n": "中国香港", + "v": "3" + }, + { + "n": "中国台湾", + "v": "6" + }, + { + "n": "美国", + "v": "5" + }, + { + "n": "韩国", + "v": "18" + }, + { + "n": "日本", + "v": "2" + } + ] + }, + { + "key": "year", + "name": "年份", + "value": [ + { + "n": "全部", + "v": "0" + }, + { + "n": "2023", + "v": "153" + }, + { + "n": "2022", + "v": "101" + }, + { + "n": "2021", + "v": "118" + }, + { + "n": "2020", + "v": "16" + }, + { + "n": "2019", + "v": "7" + }, + { + "n": "2018", + "v": "2" + }, + { + "n": "2017", + "v": "3" + }, + { + "n": "2016", + "v": "22" + } + ] + }, + { + "key": "by", + "name": "排序", + "value": [ + { + "n": "热门", + "v": "hot" + }, + { + "n": "更新", + "v": "updata" + }, + { + "n": "评分", + "v": "rating" + } + ] + } + ], + "2": [ + { + "key": "area", + "name": "地區", + "value": [ + { + "n": "全部", + "v": "0" + }, + { + "n": "国产", + "v": "1" + }, + { + "n": "中国香港", + "v": "3" + }, + { + "n": "中国台湾", + "v": "6" + }, + { + "n": "美国", + "v": "5" + }, + { + "n": "韩国", + "v": "18" + }, + { + "n": "日本", + "v": "2" + } + ] + }, + { + "key": "year", + "name": "年份", + "value": [ + { + "n": "全部", + "v": "0" + }, + { + "n": "2023", + "v": "153" + }, + { + "n": "2022", + "v": "101" + }, + { + "n": "2021", + "v": "118" + }, + { + "n": "2020", + "v": "16" + }, + { + "n": "2019", + "v": "7" + }, + { + "n": "2018", + "v": "2" + }, + { + "n": "2017", + "v": "3" + }, + { + "n": "2016", + "v": "22" + } + ] + }, + { + "key": "by", + "name": "排序", + "value": [ + { + "n": "热门", + "v": "hot" + }, + { + "n": "更新", + "v": "updata" + }, + { + "n": "评分", + "v": "rating" + } + ] + } + ], + "3": [ + { + "key": "area", + "name": "地區", + "value": [ + { + "n": "全部", + "v": "0" + }, + { + "n": "国产", + "v": "1" + }, + { + "n": "中国香港", + "v": "3" + }, + { + "n": "中国台湾", + "v": "6" + }, + { + "n": "美国", + "v": "5" + }, + { + "n": "韩国", + "v": "18" + }, + { + "n": "日本", + "v": "2" + } + ] + }, + { + "key": "year", + "name": "年份", + "value": [ + { + "n": "全部", + "v": "0" + }, + { + "n": "2023", + "v": "153" + }, + { + "n": "2022", + "v": "101" + }, + { + "n": "2021", + "v": "118" + }, + { + "n": "2020", + "v": "16" + }, + { + "n": "2019", + "v": "7" + }, + { + "n": "2018", + "v": "2" + }, + { + "n": "2017", + "v": "3" + }, + { + "n": "2016", + "v": "22" + } + ] + }, + { + "key": "by", + "name": "排序", + "value": [ + { + "n": "热门", + "v": "hot" + }, + { + "n": "更新", + "v": "updata" + }, + { + "n": "评分", + "v": "rating" + } + ] + } + ], + "4": [ + { + "key": "area", + "name": "地區", + "value": [ + { + "n": "全部", + "v": "0" + }, + { + "n": "国产", + "v": "1" + }, + { + "n": "中国香港", + "v": "3" + }, + { + "n": "中国台湾", + "v": "6" + }, + { + "n": "美国", + "v": "5" + }, + { + "n": "韩国", + "v": "18" + }, + { + "n": "日本", + "v": "2" + } + ] + }, + { + "key": "year", + "name": "年份", + "value": [ + { + "n": "全部", + "v": "0" + }, + { + "n": "2023", + "v": "153" + }, + { + "n": "2022", + "v": "101" + }, + { + "n": "2021", + "v": "118" + }, + { + "n": "2020", + "v": "16" + }, + { + "n": "2019", + "v": "7" + }, + { + "n": "2018", + "v": "2" + }, + { + "n": "2017", + "v": "3" + }, + { + "n": "2016", + "v": "22" + } + ] + }, + { + "key": "by", + "name": "排序", + "value": [ + { + "n": "热门", + "v": "hot" + }, + { + "n": "更新", + "v": "updata" + }, + { + "n": "评分", + "v": "rating" + } + ] + } + ] +} \ No newline at end of file