Skip to content

Commit 7abb8ee

Browse files
committed
update:发布1.1.7版本
1 parent bdfe21f commit 7abb8ee

24 files changed

+556
-99
lines changed

Diff for: README.md

+14-7
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# drpyS(drpy-node)
22

33
nodejs作为服务端的drpy实现。全面升级异步写法
4-
积极开发中,每日一更,当前进度 `34%`
4+
积极开发中,每日一更,当前进度 `35%`
55

66
* [本地配置接口-动态本地](/config?pwd=)
77
* [本地配置接口-动态外网/局域网](/config/1?pwd=)
@@ -16,12 +16,12 @@ nodejs作为服务端的drpy实现。全面升级异步写法
1616

1717
## 更新记录
1818

19-
### 20250110
19+
### 20250111
2020

21-
更新至V1.1.6
21+
更新至V1.1.7
2222

23-
1. 更新了一些解析相关的东西
24-
2. 测试了一些bug
23+
1. 修复lazy函数里input变量bug
24+
2. 设置中心AI增强
2525

2626
[点此查看完整更新记录](docs/updateRecord.md)
2727

@@ -54,8 +54,6 @@ todo:
5454
* [puppeteer使用教程](docs/pupInstall.md)
5555
* [drpyS源属性说明](docs/ruleAttr.md)
5656
* [drpy2写源简述](docs/ruleDesc.md)
57-
* [讯飞星火开放平台](https://console.xfyun.cn/services/bm4)
58-
* [讯飞星火智能体数据集](https://xinghuo.xfyun.cn/botcenter/private-dataset)
5957

6058
## 问题说明
6159

@@ -118,6 +116,15 @@ pm2 restart drpys
118116
* [猫影视git文件加速](https://github.catvod.com/)
119117
* [猫影视多功能主页](https://catvod.com/)
120118

119+
## AI接入
120+
121+
* [讯飞星火](https://console.xfyun.cn/services/bm4)
122+
* [deepseek](https://platform.deepseek.com/api_keys) | [对话](https://chat.deepseek.com/)
123+
* [讯飞智能体](https://xinghuo.xfyun.cn/botcenter/createbot)
124+
| [对话](https://xinghuo.xfyun.cn/botweb/0b83d4b1c0447e82ea00fe9485bd9353)
125+
| [数据集](https://xinghuo.xfyun.cn/botcenter/private-dataset)
126+
* [KIMI](https://platform.moonshot.cn/console/info) | [对话](https://kimi.moonshot.cn/)
127+
121128
## 版权
122129

123130
本项目主体框架由道长开发,项目内相关源收集于互联网,可供学习交流测试使用,禁止商用或者直接转卖代码,转载代码请带上出处。

Diff for: config/player.json

+5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
{
2+
"wallpaper": "https://api.likepoems.com/img/bing/",
3+
"spider": "",
4+
"homepage": "https://github.com/hjdhnx/drpy-node",
5+
"aiLogo": "https://image.baidu.com/search/index?tn=baiduimage&ct=201326592&lm=-1&cl=2&word=%E7%8B%97%E4%BD%9C%E4%B8%BA%E8%BD%AF%E4%BB%B6%E5%9B%BE%E6%A0%87&dyTabStr=MCwxMiwzLDEsMiwxMyw3LDYsNSw5",
6+
"homeLogo": "https://github.catvod.com/https://raw.githubusercontent.com/hjdhnx/drpy-node/refs/heads/main/public/images/logo500x200-1.png",
27
"sniffer": {
38
"userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36 Edg/105.0.1343.27",
49
"isVideoFormat": "http((?!http).){26,}\\.(m3u8|mp4|flv|avi|mkv|wmv|mpg|mpeg|mov|ts|3gp|rm|rmvb|asf|m4a|mp3|wma)",

Diff for: custom.json

+37-12
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"sites_count": 70,
2+
"sites_count": 72,
33
"sites": [
44
{
55
"key": "drpyS_设置中心",
@@ -21,7 +21,7 @@
2121
},
2222
{
2323
"name": "连续对话",
24-
"action": "{\"actionId\":\"连续对话\",\"id\":\"talk\",\"type\":\"input\",\"title\":\"连续对话\",\"tip\":\"请输入消息\",\"value\":\"\",\"msg\":\"开始新的对话\",\"button\":3,\"imageUrl\":\"https://img2.baidu.com/it/u=1206278833,3265480730&fm=253&fmt=auto&app=120&f=JPEG?w=800&h=800\",\"imageHeight\":200,\"imageType\":\"card_pic_3\",\"keep\":true,\"width\":680,\"height\":800,\"msgType\":\"long_text\",\"httpTimeout\":60,\"canceledOnTouchOutside\":false}"
24+
"action": "{\"actionId\":\"连续对话\",\"id\":\"talk\",\"type\":\"input\",\"title\":\"连续对话\",\"tip\":\"请输入消息\",\"value\":\"\",\"msg\":\"开始新的对话\",\"button\":3,\"imageUrl\":\"https://img2.baidu.com/it/u=1206278833,3265480730&fm=253&fmt=auto&app=120&f=JPEG?w=800&h=800\",\"imageHeight\":200,\"imageType\":\"card_pic_3\",\"keep\":true,\"width\":680,\"height\":800,\"msgType\":\"long_text\",\"httpTimeout\":60,\"canceledOnTouchOutside\":false,\"selectData\":\"新的对话:=清空AI对话记录\"}"
2525
},
2626
{
2727
"name": "查看夸克cookie",
@@ -163,6 +163,16 @@
163163
"quickSearch": 0,
164164
"ext": ""
165165
},
166+
{
167+
"key": "drpyS_小米盘搜[盘]",
168+
"name": "小米盘搜[盘](DS)",
169+
"type": 4,
170+
"api": "http://localhost:5757/api/小米盘搜[盘]",
171+
"searchable": 1,
172+
"filterable": 0,
173+
"quickSearch": 1,
174+
"ext": ""
175+
},
166176
{
167177
"key": "drpyS_木偶[盘]",
168178
"name": "木偶[盘](DS)",
@@ -363,6 +373,16 @@
363373
"quickSearch": 0,
364374
"ext": "H4sIAAAAAAAAA9PT088qzs/Tf9ne/nJ2W3RVZezLuTOfNTTqgURVDAGu/MCKHwAAAA=="
365375
},
376+
{
377+
"key": "drpyS_草榴社区[密]",
378+
"name": "草榴社区[密](DS)",
379+
"type": 4,
380+
"api": "http://localhost:5757/api/草榴社区[密]",
381+
"searchable": 2,
382+
"filterable": 0,
383+
"quickSearch": 0,
384+
"ext": ""
385+
},
366386
{
367387
"key": "drpyS_大嫂TV[密]",
368388
"name": "大嫂TV[密](DS)",
@@ -413,6 +433,16 @@
413433
"quickSearch": 0,
414434
"ext": ""
415435
},
436+
{
437+
"key": "drpyS_鬼片之家",
438+
"name": "鬼片之家(DS)",
439+
"type": 4,
440+
"api": "http://localhost:5757/api/鬼片之家",
441+
"searchable": 2,
442+
"filterable": 0,
443+
"quickSearch": 0,
444+
"ext": ""
445+
},
416446
{
417447
"key": "drpyS_好乐影视",
418448
"name": "好乐影视(DS)",
@@ -713,16 +743,6 @@
713743
"quickSearch": 2,
714744
"ext": ""
715745
},
716-
{
717-
"key": "drpyS_x草榴社区[密]",
718-
"name": "x草榴社区[密](DS)",
719-
"type": 4,
720-
"api": "http://localhost:5757/api/x草榴社区[密]",
721-
"searchable": 2,
722-
"filterable": 0,
723-
"quickSearch": 0,
724-
"ext": ""
725-
},
726746
{
727747
"key": "drpyS_xvideos[密]",
728748
"name": "xvideos[密](DS)",
@@ -941,6 +961,11 @@
941961
"logo": "https://live.mxdyeah.top/logo/{name}.png"
942962
}
943963
],
964+
"wallpaper": "https://api.likepoems.com/img/bing/",
965+
"spider": "",
966+
"homepage": "https://github.com/hjdhnx/drpy-node",
967+
"aiLogo": "https://image.baidu.com/search/index?tn=baiduimage&ct=201326592&lm=-1&cl=2&word=%E7%8B%97%E4%BD%9C%E4%B8%BA%E8%BD%AF%E4%BB%B6%E5%9B%BE%E6%A0%87&dyTabStr=MCwxMiwzLDEsMiwxMyw3LDYsNSw5",
968+
"homeLogo": "https://github.catvod.com/https://raw.githubusercontent.com/hjdhnx/drpy-node/refs/heads/main/public/images/logo500x200-1.png",
944969
"sniffer": {
945970
"userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36 Edg/105.0.1343.27",
946971
"isVideoFormat": "http((?!http).){26,}\\.(m3u8|mp4|flv|avi|mkv|wmv|mpg|mpeg|mov|ts|3gp|rm|rmvb|asf|m4a|mp3|wma)",

Diff for: docs/updateRecord.md

+13
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
# drpyS更新记录
22

3+
### 20250111
4+
5+
更新至V1.1.7
6+
7+
1. 生成的订阅配置增加风景壁纸接口可供壳子切换
8+
2. lazy传入的this指向里的input和MY_URL在非http链接的情况下取消自动url解码逻辑,应对特殊场景解码后加号丢失问题
9+
3. 设置中心接入了新的AI:kimi,并全面升级所有AI都支持上下文连续对话,最多20条聊天记录
10+
4. 连续对话增加快速输入新的对话
11+
5. 新增 & 修复源
12+
6. 优化 batchFetch 函数的性能开销
13+
7. 新增 `小米盘搜[搜].js`
14+
8. 统一给所有函数的this指针绑定HOST变量
15+
316
### 20250110
417

518
更新至V1.1.6

Diff for: index.json

+37-12
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"sites_count": 70,
2+
"sites_count": 72,
33
"sites": [
44
{
55
"key": "drpyS_设置中心",
@@ -21,7 +21,7 @@
2121
},
2222
{
2323
"name": "连续对话",
24-
"action": "{\"actionId\":\"连续对话\",\"id\":\"talk\",\"type\":\"input\",\"title\":\"连续对话\",\"tip\":\"请输入消息\",\"value\":\"\",\"msg\":\"开始新的对话\",\"button\":3,\"imageUrl\":\"https://img2.baidu.com/it/u=1206278833,3265480730&fm=253&fmt=auto&app=120&f=JPEG?w=800&h=800\",\"imageHeight\":200,\"imageType\":\"card_pic_3\",\"keep\":true,\"width\":680,\"height\":800,\"msgType\":\"long_text\",\"httpTimeout\":60,\"canceledOnTouchOutside\":false}"
24+
"action": "{\"actionId\":\"连续对话\",\"id\":\"talk\",\"type\":\"input\",\"title\":\"连续对话\",\"tip\":\"请输入消息\",\"value\":\"\",\"msg\":\"开始新的对话\",\"button\":3,\"imageUrl\":\"https://img2.baidu.com/it/u=1206278833,3265480730&fm=253&fmt=auto&app=120&f=JPEG?w=800&h=800\",\"imageHeight\":200,\"imageType\":\"card_pic_3\",\"keep\":true,\"width\":680,\"height\":800,\"msgType\":\"long_text\",\"httpTimeout\":60,\"canceledOnTouchOutside\":false,\"selectData\":\"新的对话:=清空AI对话记录\"}"
2525
},
2626
{
2727
"name": "查看夸克cookie",
@@ -163,6 +163,16 @@
163163
"quickSearch": 0,
164164
"ext": ""
165165
},
166+
{
167+
"key": "drpyS_小米盘搜[盘]",
168+
"name": "小米盘搜[盘](DS)",
169+
"type": 4,
170+
"api": "http://localhost:5757/api/小米盘搜[盘]",
171+
"searchable": 1,
172+
"filterable": 0,
173+
"quickSearch": 1,
174+
"ext": ""
175+
},
166176
{
167177
"key": "drpyS_木偶[盘]",
168178
"name": "木偶[盘](DS)",
@@ -363,6 +373,16 @@
363373
"quickSearch": 0,
364374
"ext": "H4sIAAAAAAAAA9PT088qzs/Tf9ne/nJ2W3RVZezLuTOfNTTqgURVDAGu/MCKHwAAAA=="
365375
},
376+
{
377+
"key": "drpyS_草榴社区[密]",
378+
"name": "草榴社区[密](DS)",
379+
"type": 4,
380+
"api": "http://localhost:5757/api/草榴社区[密]",
381+
"searchable": 2,
382+
"filterable": 0,
383+
"quickSearch": 0,
384+
"ext": ""
385+
},
366386
{
367387
"key": "drpyS_大嫂TV[密]",
368388
"name": "大嫂TV[密](DS)",
@@ -413,6 +433,16 @@
413433
"quickSearch": 0,
414434
"ext": ""
415435
},
436+
{
437+
"key": "drpyS_鬼片之家",
438+
"name": "鬼片之家(DS)",
439+
"type": 4,
440+
"api": "http://localhost:5757/api/鬼片之家",
441+
"searchable": 2,
442+
"filterable": 0,
443+
"quickSearch": 0,
444+
"ext": ""
445+
},
416446
{
417447
"key": "drpyS_好乐影视",
418448
"name": "好乐影视(DS)",
@@ -713,16 +743,6 @@
713743
"quickSearch": 2,
714744
"ext": ""
715745
},
716-
{
717-
"key": "drpyS_x草榴社区[密]",
718-
"name": "x草榴社区[密](DS)",
719-
"type": 4,
720-
"api": "http://localhost:5757/api/x草榴社区[密]",
721-
"searchable": 2,
722-
"filterable": 0,
723-
"quickSearch": 0,
724-
"ext": ""
725-
},
726746
{
727747
"key": "drpyS_xvideos[密]",
728748
"name": "xvideos[密](DS)",
@@ -941,6 +961,11 @@
941961
"logo": "https://live.mxdyeah.top/logo/{name}.png"
942962
}
943963
],
964+
"wallpaper": "https://api.likepoems.com/img/bing/",
965+
"spider": "",
966+
"homepage": "https://github.com/hjdhnx/drpy-node",
967+
"aiLogo": "https://image.baidu.com/search/index?tn=baiduimage&ct=201326592&lm=-1&cl=2&word=%E7%8B%97%E4%BD%9C%E4%B8%BA%E8%BD%AF%E4%BB%B6%E5%9B%BE%E6%A0%87&dyTabStr=MCwxMiwzLDEsMiwxMyw3LDYsNSw5",
968+
"homeLogo": "https://github.catvod.com/https://raw.githubusercontent.com/hjdhnx/drpy-node/refs/heads/main/public/images/logo500x200-1.png",
944969
"sniffer": {
945970
"userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36 Edg/105.0.1343.27",
946971
"isVideoFormat": "http((?!http).){26,}\\.(m3u8|mp4|flv|avi|mkv|wmv|mpg|mpeg|mov|ts|3gp|rm|rmvb|asf|m4a|mp3|wma)",

Diff for: js/_lib.action.js

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ const action_data = [
1818
msgType: 'long_text',
1919
httpTimeout: 60,
2020
canceledOnTouchOutside: false,
21+
selectData: '新的对话:=清空AI对话记录'
2122
}),
2223
vod_name: '连续对话',
2324
vod_pic: 'https://img2.baidu.com/it/u=1206278833,3265480730&fm=253&fmt=auto&app=120&f=JPEG?w=800&h=800',

Diff for: js/x草榴社区[密].js

-1
This file was deleted.

Diff for: js/小米盘搜[盘].js

+90
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
// 注意事项:海阔不支持搜索或者一级直接push推二级,这里只好把搜索结果编码强制进二级解码后再推
2+
// 为了同时兼容壳子和海阔。壳子本身只需要搜索结果直接push就可以了
3+
// 海阔搜索进的二级push好像也推不了数据
4+
var rule = {
5+
类型: '搜索',
6+
title: '小米盘搜',
7+
alias: '网盘搜索引擎',
8+
desc: '仅搜索源纯js写法',
9+
host: 'https://www.misou.fun',
10+
url: '',
11+
searchUrl: '/v1/search/disk',
12+
headers: {
13+
'User-Agent': 'PC_UA',
14+
'Content-Type': 'application/json'
15+
},
16+
searchable: 1,
17+
quickSearch: 1,
18+
filterable: 0,
19+
double: true,
20+
play_parse: true,
21+
limit: 10,
22+
class_name: '',
23+
class_url: '',
24+
lazy: async function () {
25+
},
26+
action: async function (action, value) {
27+
if (action === 'only_search') {
28+
return '此源为纯搜索源,你直接搜索你想要的就好了,比如 大奉打更人'
29+
}
30+
return `没有动作:${action}的可执行逻辑`
31+
},
32+
推荐: async function () {
33+
return [{
34+
vod_id: 'only_search',
35+
vod_name: '这是个纯搜索源哦',
36+
vod_tag: 'action'
37+
}]
38+
},
39+
一级: async function () {
40+
return []
41+
},
42+
二级: async function () {
43+
let {orId} = this;
44+
// let vod_id = orId;
45+
let vod_id = base64Decode(orId);
46+
let vod = {vod_id: vod_id.split('$$')[0]};
47+
vod.vod_name = vod_id.split('$$')[1];
48+
vod.vod_play_from = 'push';
49+
vod.vod_play_url = '推送观看$' + vod.vod_id;
50+
// log(vod);
51+
return vod
52+
},
53+
搜索: async function () {
54+
let {input, pdfa, pdfh, pd, KEY, MY_PAGE} = this;
55+
const postData = {
56+
page: MY_PAGE,
57+
q: KEY, // 使用用户通过 'wd' 参数传递的搜索文本
58+
user: '',
59+
// exact: true,
60+
exact: false,
61+
share_time: '',
62+
size: this.limit, // 最多返回10个结果
63+
// type: 'QUARK',
64+
type: ''
65+
};
66+
let html = await post(input, {data: postData});
67+
let json = JSON.parse(html);
68+
69+
// 获取 "list" 部分的内容
70+
let list = json.data.list || [];
71+
72+
// 循环遍历 "list",将 "disk_name" 键名替换为 "vod_name",将 "shared_time" 键名替换为 "vod_remarks",将 "link" 键名替换为 "vod_id",并设置 "disk_type" 替换为 "vod_pic"
73+
list = list.map((item) => {
74+
let vod_name = misc.stripHtmlTag(item.disk_name);
75+
return {
76+
vod_name: vod_name,
77+
vod_content: `上传日期: ${item.shared_time}`,
78+
vod_remarks: `网盘:${item.disk_type}`,
79+
// vod_id: `push://${item.link}`,
80+
vod_id: base64Encode(`push://${item.link}$$${vod_name}`),
81+
vod_pic: 'http://pic.uzzf.com/up/2023-7/20237261437483499.png'
82+
}
83+
});
84+
85+
// 更新 "list" 部分的内容
86+
json.data.list = list;
87+
88+
return list
89+
}
90+
}

0 commit comments

Comments
 (0)