Skip to content

Commit fd774df

Browse files
committed
update: 发布新版本
v1.1.19
1 parent 0a1af97 commit fd774df

27 files changed

+749
-128
lines changed

Diff for: .gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -143,3 +143,4 @@ dist
143143
/vod_cache/
144144
/jx/芒果关姐.js
145145
/data/mv/
146+
/database.db

Diff for: README.md

+4
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ nodejs作为服务端的drpy实现。全面升级异步写法
1919

2020
## 更新记录
2121

22+
### 20250224
23+
24+
更新至V1.1.19
25+
2226
### 20250211
2327

2428
更新至V1.1.18

Diff for: data/cat/index.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ var index_config_default = {
4949
"server": "http://localhost:5244",
5050
"startPage": "/",
5151
"showAll": false,
52-
"search": true,
52+
"sort": true,
5353
"login": {
5454
"username": "admin",
5555
"password": "admin",

Diff for: data/cat/index.js

+41-41
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: docs/updateRecord.md

+42
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,46 @@
11
# drpyS更新记录
2+
### 20250224
3+
4+
更新至V1.1.19
5+
6+
1. 修复 推送和所有网盘源涉及的UC播放问题,支持原代本和原代服务加速
7+
2. 更新猫爪的 alist.js
8+
3. 新增 `sqlite` `sqlite3` 依赖,在ds源里的异步方法里直接使用,示例:
9+
```javascript
10+
await database.startDb();
11+
console.log('database:',database);
12+
const db = database.db;
13+
// 创建表
14+
await db.run(`
15+
CREATE TABLE IF NOT EXISTS users (
16+
id INTEGER PRIMARY KEY AUTOINCREMENT,
17+
name TEXT NOT NULL
18+
)
19+
`);
20+
21+
// 插入数据
22+
await db.run('INSERT INTO users (name) VALUES (?)', ['Alice']);
23+
await db.run('INSERT INTO users (name) VALUES (?)', ['Bob']);
24+
25+
// 查询数据
26+
const users = await db.all('SELECT * FROM users');
27+
console.log(users);
28+
29+
// 更新数据
30+
await db.run('UPDATE users SET name = ? WHERE id = ?', ['Charlie', 1]);
31+
32+
// 查询更新后的数据
33+
const updatedUsers = await db.all('SELECT * FROM users');
34+
console.log(updatedUsers);
35+
36+
// 删除数据
37+
await db.run('DELETE FROM users WHERE id = ?', [2]);
38+
39+
// 查询删除后的数据
40+
const finalUsers = await db.all('SELECT * FROM users');
41+
console.log(finalUsers);
42+
await database.endDb();
43+
```
244

345
### 20250211
446

Diff for: js/16wMV[听].js

+2-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ var rule = {
6161
let t2 = (new Date()).getTime();
6262
log(`读取文件并转json耗时:${t2 - t1}毫秒`);
6363
},
64-
lazy: async function () {
64+
lazy: async function (flag, id, flags) {
65+
return {parse: 0, url: id}
6566
},
6667
proxy_rule: async function (params) {
6768
let {input, proxyPath, getProxyUrl} = this;

0 commit comments

Comments
 (0)