From 24ea28a44b6e2db0de6c0e0df54c64b13fbaa839 Mon Sep 17 00:00:00 2001 From: nilaoda Date: Sun, 25 Sep 2022 12:35:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=8F=90=E7=A4=BA=E4=BF=A1?= =?UTF-8?q?=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/N_m3u8DL-RE.Common/Resource/StaticText.cs | 6 +++--- src/N_m3u8DL-RE/CommandLine/CommandInvoker.cs | 4 +--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/N_m3u8DL-RE.Common/Resource/StaticText.cs b/src/N_m3u8DL-RE.Common/Resource/StaticText.cs index f8ec5fe..dc89ce5 100644 --- a/src/N_m3u8DL-RE.Common/Resource/StaticText.cs +++ b/src/N_m3u8DL-RE.Common/Resource/StaticText.cs @@ -246,9 +246,9 @@ namespace N_m3u8DL_RE.Common.Resource ), ["cmd_customProxy"] = new TextContainer ( - zhCN: "设置请求代理", - zhTW: "設置請求代理", - enUS: "Set web request proxy" + zhCN: "设置请求代理, 如 http://127.0.0.1:8888", + zhTW: "設置請求代理, 如 http://127.0.0.1:8888", + enUS: "Set web request proxy, like http://127.0.0.1:8888" ), ["cmd_useSystemProxy"] = new TextContainer ( diff --git a/src/N_m3u8DL-RE/CommandLine/CommandInvoker.cs b/src/N_m3u8DL-RE/CommandLine/CommandInvoker.cs index 9047b6a..e5a7efa 100644 --- a/src/N_m3u8DL-RE/CommandLine/CommandInvoker.cs +++ b/src/N_m3u8DL-RE/CommandLine/CommandInvoker.cs @@ -92,13 +92,11 @@ namespace N_m3u8DL_RE.CommandLine { if (string.IsNullOrEmpty(input)) return null; - if (!input.StartsWith("http")) - throw new ArgumentException("url must starts with http"); return new WebProxy(new Uri(input)); } catch (Exception ex) { - result.ErrorMessage = $"error in parse {input}: " + ex.Message; + result.ErrorMessage = $"error in parse proxy: " + ex.Message; return null; } }