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; } }