koishi-plugin-video-parser-all 0.8.3 → 0.8.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.js +2 -4
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -10,7 +10,6 @@ const axios_1 = __importDefault(require("axios"));
|
|
|
10
10
|
const crypto_1 = __importDefault(require("crypto"));
|
|
11
11
|
const fs_1 = __importDefault(require("fs"));
|
|
12
12
|
const path_1 = __importDefault(require("path"));
|
|
13
|
-
const url_1 = require("url");
|
|
14
13
|
const promises_1 = require("stream/promises");
|
|
15
14
|
const worker_threads_1 = require("worker_threads");
|
|
16
15
|
exports.name = 'video-parser-all';
|
|
@@ -594,9 +593,8 @@ function apply(ctx, config) {
|
|
|
594
593
|
const fname = crypto_1.default.createHash('md5').update(p.video).digest('hex');
|
|
595
594
|
const dl = await downloadVideo(p.video, fname, config.userAgent, config.maxVideoSize, config.downloadThreads);
|
|
596
595
|
if (dl.success) {
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
return koishi_1.h.file(fileUrl);
|
|
596
|
+
debugLog('INFO', `视频下载成功,发送文件: ${dl.filePath}`);
|
|
597
|
+
return koishi_1.h.file(dl.filePath);
|
|
600
598
|
}
|
|
601
599
|
}
|
|
602
600
|
debugLog('INFO', `发送视频链接: ${p.video}`);
|
package/package.json
CHANGED