From 1e851ce1c275eb75dc93776387c5cdfc1be01e61 Mon Sep 17 00:00:00 2001 From: croire <1432593898@qq.com> Date: Thu, 21 Oct 2021 11:47:31 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=AF=E6=8C=81=E7=9F=AD=E9=93=BE=E6=8E=A5?= =?UTF-8?q?=E5=92=8C/s=E7=9A=84url?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- DownKyi.Core/BiliApi/BiliUtils/ParseEntrance.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/DownKyi.Core/BiliApi/BiliUtils/ParseEntrance.cs b/DownKyi.Core/BiliApi/BiliUtils/ParseEntrance.cs index f7c51ad..2729836 100644 --- a/DownKyi.Core/BiliApi/BiliUtils/ParseEntrance.cs +++ b/DownKyi.Core/BiliApi/BiliUtils/ParseEntrance.cs @@ -19,7 +19,10 @@ namespace DownKyi.Core.BiliApi.BiliUtils public static class ParseEntrance { public static readonly string WwwUrl = "https://www.bilibili.com"; + public static readonly string ShareWwwUrl = "https://www.bilibili.com/s"; + public static readonly string ShortUrl = "https://b23.tv/"; public static readonly string MobileUrl = "https://m.bilibili.com"; + public static readonly string SpaceUrl = "https://space.bilibili.com"; public static readonly string VideoUrl = $"{WwwUrl}/video/"; @@ -492,6 +495,8 @@ namespace DownKyi.Core.BiliApi.BiliUtils string url = EnableHttps(input); url = DeleteUrlParam(url); + url = url.Replace(ShareWwwUrl, WwwUrl); + url = url.Replace(ShortUrl, VideoUrl); url = url.Replace(MobileUrl, WwwUrl); if (!url.StartsWith(baseUrl)) { return ""; }