Skip to content

Commit 0f23e4b

Browse files
author
Taois
committed
feat: 修复bug
1 parent 42aa4f7 commit 0f23e4b

File tree

5 files changed

+13
-7
lines changed

5 files changed

+13
-7
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,11 @@ yarn build
4646

4747
# 更新记录
4848

49+
### 20250905
50+
51+
1. 修复播放解析,支持T4本地代理播放,需要配合最新ds
52+
2. 更完善的hipy T4支持
53+
4954
### 20250821
5055

5156
1. 支持 t4源ext扩展放object,适配ds的hipy源

nodejs/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@
66
"scripts": {
77
"dev": "cross-env DEV_HTTP_PORT=5758 nodemon --config nodemon.json src/dev.js",
88
"_build": "rimraf dist && node esbuild.js && node esbuild-config.js",
9-
"build": "cross-env NODE_ENV=production npm run _build && node copyDist.js D:\\soft\\猫影视\\Release\\data\\flutter_assets\\asset\\js",
10-
"build:copy": "cross-env NODE_ENV=production npm run _build && node copyDist.js D:\\soft\\猫影视\\Release\\data\\flutter_assets\\asset\\js",
11-
"build:dbg:copy": "cross-env NODE_ENV=development npm run _build && node copyDist.js D:\\soft\\猫影视\\Release\\data\\flutter_assets\\asset\\js",
9+
"build": "cross-env NODE_ENV=production npm run _build && node copyDist.js D:\\soft\\CatPawOpen\\data\\flutter_assets\\asset\\js",
10+
"build:copy": "cross-env NODE_ENV=production npm run _build && node copyDist.js D:\\soft\\CatPawOpen\\data\\flutter_assets\\asset\\js",
11+
"build:dbg:copy": "cross-env NODE_ENV=development npm run _build && node copyDist.js D:\\soft\\CatPawOpen\\data\\flutter_assets\\asset\\js",
1212
"build:dbg": "cross-env NODE_ENV=development npm run _build",
1313
"build:config": "cross-env NODE_ENV=production node esbuild-config.js",
1414
"build:rollup(obsolete)": "rimraf dist && cross-env NODE_ENV=production node rollup.js && cross-env NODE_ENV=production node rollup-config.js",
1515
"build:rollup:config(obsolete)": "cross-env NODE_ENV=production node rollup-config.js",
16-
"build-old:dbg:copy": "rimraf dist && cross-env NODE_ENV=development node esbuild.js && cross-env NODE_ENV=development node esbuild-config.js && node copyDist.js D:\\soft\\猫影视\\Release\\data\\flutter_assets\\asset\\js"
16+
"build-old:dbg:copy": "rimraf dist && cross-env NODE_ENV=development node esbuild.js && cross-env NODE_ENV=development node esbuild-config.js && node copyDist.js D:\\soft\\CatPawOpen\\data\\flutter_assets\\asset\\js"
1717
},
1818
"engines": {
1919
"node": ">17 <23"

nodejs/source/ds-cat.20250905.7z

1 MB
Binary file not shown.

nodejs/src/index.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
export default {
22
drpyS: {
3-
config_url: 'http://localhost:5757/config/1?sub=all&pwd=dzyyds', // 本地ds 支持
3+
// config_url: 'http://localhost:5757/config/1?sub=all&pwd=dzyyds', // 本地ds 支持
4+
config_url: 'http://localhost:5757/config/1?sub=hipy&pwd=dzyyds', // 本地ds 支持
45
// config_url: 'http://localhost:5707/config/0?sub=dzyyds', // 本地hipy-t4 支持
56
home_site: 'http://localhost:5757/api/设置中心',
67
enable_dspush: 1,

nodejs/src/spider/video/drpyS.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ async function play(_inReq, _outResp) {
299299
}
300300
result = images
301301
} else { //影视类执行解析、免嗅、嗅探逻辑
302-
if (result && result.jx && result.url) {
302+
if (result && Number(result.jx) && result.url) {
303303
const input = result.url;
304304
// console.log(DsCache.parses);
305305
// 筛选出json解析
@@ -365,7 +365,7 @@ async function play(_inReq, _outResp) {
365365
// header: headers
366366
}
367367

368-
} else if (result && result.parse && result.url) {
368+
} else if (result && Number(result.parse) && result.url) {
369369
const input = result.url;
370370
if (input && input.startsWith('http')) { // lazy返回结果是url http开头才走嗅探和免嗅逻辑
371371
const sniffer_rule = cfg.default.drpyS.sniffer_rule || 'http((?!http).){12,}?\\.m3u8(?!\\?)';

0 commit comments

Comments
 (0)