koishi-plugin-video-parser-all 1.2.0 → 1.2.2
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 +3 -0
- 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