koishi-plugin-video-parser-all 1.3.8 → 1.4.0

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.
Files changed (2) hide show
  1. package/lib/index.js +2 -0
  2. package/package.json +3 -3
package/lib/index.js CHANGED
@@ -1243,6 +1243,8 @@ function apply(ctx, config) {
1243
1243
  ctx.on('message', async (session) => {
1244
1244
  if (!config.enable)
1245
1245
  return;
1246
+ if (/^\s*parse\b/i.test(session.content || ''))
1247
+ return;
1246
1248
  if (session.subtype === 'file_upload')
1247
1249
  return;
1248
1250
  if (session.elements?.some(elem => elem.type === 'file' || elem.type === 'folder'))
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "koishi-plugin-video-parser-all",
3
3
  "description": "Koishi 全平台视频/图集解析插件,支持抖音/快手/B站/微博/小红书/剪映/YouTube/TikTok等20+平台",
4
- "version": "1.3.8",
4
+ "version": "1.4.0",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "files": [
@@ -98,13 +98,13 @@
98
98
  "peerDependencies": {
99
99
  "@koishijs/plugin-console": "^5.30.4",
100
100
  "koishi": "^4.18.7",
101
- "@koishijs/plugin-downloads": "^5.30.4",
101
+ "koishi-plugin-downloads": "^1.0.0",
102
102
  "koishi-plugin-silk": "^1.0.0",
103
103
  "koishi-plugin-ffmpeg": "^1.0.0",
104
104
  "aria2": "^4.1.2"
105
105
  },
106
106
  "peerDependenciesMeta": {
107
- "@koishijs/plugin-downloads": {
107
+ "koishi-plugin-downloads": {
108
108
  "optional": true
109
109
  },
110
110
  "koishi-plugin-silk": {