优化提示信息
This commit is contained in:
parent
e5dc06c64b
commit
24ea28a44b
|
@ -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
|
||||
(
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue