qiushang 3 周之前
父节点
当前提交
d52e094d14
共有 3 个文件被更改,包括 14 次插入6 次删除
  1. 3 3
      nsis/test.nsi
  2. 1 1
      package.json
  3. 10 2
      src/renderer/components/home.vue

+ 3 - 3
nsis/test.nsi

@@ -1,16 +1,16 @@
 # ====================== 自定义宏 产品信息==============================
 !define PRODUCT_MID        		    "EkoFCqqaUJXy"
-!define PRODUCT_VERSION        		"2.0.7.0"
+!define PRODUCT_VERSION        		"2.0.7.1"
 !define PRODUCT_NAME           		"星优视频解析下载器"
 !define INSTALL_OUTPUT_NAME    		"XYCaptureVideo_XY.exe" 
 !define EXE_NAME               		"XYCaptureVideo.exe"
 !define PRODUCT_PATHNAME           	"XYCaptureVideo"     #安装卸载项用到的KEY,注册表
 !define INSTALL_APPEND_PATH         "XYCaptureVideo"     #安装路径追加的名称 
-!define APP_DOWNLOAD_URL    		"https://xy.xingyousoft.com/soft/XYCaptureVideo/lastest2.0.7.0.7z"
+!define APP_DOWNLOAD_URL    		"https://xy.xingyousoft.com/soft/XYCaptureVideo/lastest2.0.7.1.7z"
 !define PRODUCT_PUBLISHER      	    "苏州星优办公软件有限公司"
 !define PRODUCT_LEGAL          	    "苏州星优办公软件有限公司"
 !define STATISTICS_url              "https://www.xingyousoft.com/api/index/user_log"   # 统计网址
-!define UNINSTALL_url               "https://xy.xingyousoft.com/soft/XYCaptureVideo/uninstallWeb/?v=2.0.7.0"   # 接卸优惠网址
+!define UNINSTALL_url               "https://xy.xingyousoft.com/soft/XYCaptureVideo/uninstallWeb/?v=2.0.7.1"   # 接卸优惠网址
 
 # ====================== 自定义宏 安装信息==============================
 !define INSTALL_7Z_NAME 	   		"app.7z"

+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
 	"name": "XYCaptureVideo",
-	"version": "2.0.7.0",
+	"version": "2.0.7.1",
 	"author": "苏州星优办公软件有限公司",
 	"description": "An electron-vue project",
 	"license": "captureVideo",

+ 10 - 2
src/renderer/components/home.vue

@@ -665,6 +665,10 @@
 						this.$forceUpdate();
 						
 						let outPath = this.downloadDir + separator + pjson.softInfo.softName;
+						let itemTitle = item.title;
+						if(this.containsAnyChar(item.title)){  //判断是否含有特殊字符
+							itemTitle = item.title.replace(/[\\/:*?"<>|#%&\s]/g, "");
+						}
 						let params = [
 							'ffmpeg.exe',
 							'-i',
@@ -673,7 +677,7 @@
 							newPath + separator + audioTitle,
 							'-c',
 							'copy',
-							outPath + separator + item.title + '.mp4',
+							outPath + separator + itemTitle + '.mp4',
 							'-hide_banner',
 							'-y'
 						];
@@ -727,6 +731,10 @@
 			// b站视频合并
 			mergeVideo(){
 				let newPath = this.downloadDir + separator + pjson.softInfo.softName;
+				let itemTitle = this.bVideoInfo.title;
+				if(this.containsAnyChar(this.bVideoInfo.title)){  //判断是否含有特殊字符
+					itemTitle = this.bVideoInfo.title.replace(/[\\/:*?"<>|#%&\s]/g, "");
+				}
 				let params = [
 					'ffmpeg.exe',
 					'-i',
@@ -735,7 +743,7 @@
 					this.bVideoInfo.audioPath,
 					'-c',
 					'copy',
-					newPath + separator + this.bVideoInfo.title + '.' + this.bVideoInfo.suffix,
+					newPath + separator + itemTitle + '.' + this.bVideoInfo.suffix,
 					'-hide_banner',
 					'-y'
 				];