Skip to content

Commit

Permalink
Merge pull request #204 from caorushizi/fix-search
Browse files Browse the repository at this point in the history
fix: 🐛  修复新版本在更换安装目录后下载失败的问题
  • Loading branch information
caorushizi authored Jun 30, 2024
2 parents bcb7084 + a607cc5 commit 03b2c80
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
APP_NAME=mediago
APP_ID=mediago.ziying.site
APP_COPYRIGHT=caorushizi
APP_VERSION=2.2.3-beta.0
APP_VERSION=2.2.3-beta.1
2 changes: 1 addition & 1 deletion packages/main/app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mediago",
"version": "2.2.3-beta.0",
"version": "2.2.3-beta.1",
"description": "在线视频下载器",
"main": "main/index.js",
"author": "caorushizi",
Expand Down
7 changes: 7 additions & 0 deletions packages/main/src/services/DownloadService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ const processList: Schema[] = [
proxy: {
argsName: ["--custom-proxy"],
},
__common__: {
argsName: ["--no-log"],
},
},
consoleReg: {
percent: "([\\d.]+)%",
Expand Down Expand Up @@ -326,6 +329,10 @@ export default class DownloadService extends EventEmitter {
if (key === "proxy" && proxy) {
argsName && argsName.forEach((i) => spawnParams.push(i, proxy));
}

if (key === "__common__") {
argsName && spawnParams.push(...argsName);
}
}

const { consoleReg } = schema;
Expand Down

0 comments on commit 03b2c80

Please sign in to comment.