koishi-plugin-video-parser-all 1.2.0 → 1.2.1

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 +3 -0
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -726,6 +726,9 @@ function apply(ctx, config) {
726
726
  const lastTime = dedupCache.get(match.url);
727
727
  if (lastTime && (Date.now() - lastTime < config.deduplicationInterval * 1000)) {
728
728
  debugLog('INFO', `跳过重复链接: ${match.url}`);
729
+ const shortUrl = match.url.length > 50 ? match.url.slice(0, 50) + '...' : match.url;
730
+ const skipMsg = `链接 ${shortUrl} 在最近 ${config.deduplicationInterval} 秒内已解析过,已跳过。`;
731
+ await sendWithTimeout(session, skipMsg).catch(() => { });
729
732
  continue;
730
733
  }
731
734
  }
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.2.0",
4
+ "version": "1.2.1",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "files": [