koishi-plugin-bilibili-videolink-analysis 1.1.24 → 1.1.25

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 +1 -13
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -480,7 +480,6 @@ display: none !important;
480
480
  let videoElements = []; // 用于存储视频相关元素
481
481
  let textElements = []; // 用于存储图文解析元素
482
482
  let shouldPerformTextParsing = config.linktextParsing; // 默认根据配置决定是否进行图文解析
483
- let isLongVideo = false; // 标记视频是否过长
484
483
 
485
484
  // 先进行图文解析
486
485
  if (shouldPerformTextParsing) {
@@ -534,7 +533,6 @@ display: none !important;
534
533
 
535
534
  // 检查视频是否太短
536
535
  if (videoDurationMinutes < config.Minimumduration) {
537
- isShortVideo = true;
538
536
 
539
537
  // 根据 Minimumduration_tip 的值决定行为
540
538
  if (config.Minimumduration_tip === 'return') {
@@ -561,7 +559,6 @@ display: none !important;
561
559
  }
562
560
  // 检查视频是否太长
563
561
  else if (videoDurationMinutes > config.Maximumduration) {
564
- isLongVideo = true;
565
562
 
566
563
  // 根据 Maximumduration_tip 的值决定行为
567
564
  if (config.Maximumduration_tip === 'return') {
@@ -662,16 +659,7 @@ display: none !important;
662
659
  }
663
660
 
664
661
  // 准备发送的所有元素
665
- let allElements = [];
666
-
667
- // 根据视频是否过长决定发送顺序
668
- if (isLongVideo) {
669
- // 过长视频:先发送过长提示(已在上面处理),然后是图文解析(如果启用)
670
- allElements = [...textElements, ...videoElements];
671
- } else {
672
- // 正常视频:先发送图文解析,然后是视频元素
673
- allElements = [...textElements, ...videoElements];
674
- }
662
+ let allElements = [...textElements, ...videoElements];
675
663
 
676
664
  // 如果没有任何元素要发送,则直接返回
677
665
  if (allElements.length === 0) {
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "koishi-plugin-bilibili-videolink-analysis",
3
3
  "description": "[<ruby>Bilibili视频解析<rp>(</rp><rt>点我查看食用方法</rt><rp>)</rp></ruby>](https://www.npmjs.com/package/koishi-plugin-bilibili-videolink-analysis)解析B站链接(支持小程序卡片)支持搜索点播功能!灵感来自完美的 [bili-parser](/market?keyword=bili-parser) !",
4
4
  "license": "MIT",
5
- "version": "1.1.24",
5
+ "version": "1.1.25",
6
6
  "main": "lib/index.js",
7
7
  "typings": "lib/index.d.ts",
8
8
  "files": [