From c41c81db3d7c2f0cf6fb010ff4ab1384c0932a4c Mon Sep 17 00:00:00 2001 From: croire <1432593898@qq.com> Date: Thu, 21 Oct 2021 12:15:14 +0800 Subject: [PATCH] =?UTF-8?q?=E7=9F=AD=E9=93=BE=E6=8E=A5=E6=94=AF=E6=8C=81?= =?UTF-8?q?=E7=95=AA=E5=89=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- DownKyi.Core/BiliApi/BiliUtils/ParseEntrance.cs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/DownKyi.Core/BiliApi/BiliUtils/ParseEntrance.cs b/DownKyi.Core/BiliApi/BiliUtils/ParseEntrance.cs index 2729836..8b71c8c 100644 --- a/DownKyi.Core/BiliApi/BiliUtils/ParseEntrance.cs +++ b/DownKyi.Core/BiliApi/BiliUtils/ParseEntrance.cs @@ -496,9 +496,17 @@ namespace DownKyi.Core.BiliApi.BiliUtils url = DeleteUrlParam(url); url = url.Replace(ShareWwwUrl, WwwUrl); - url = url.Replace(ShortUrl, VideoUrl); url = url.Replace(MobileUrl, WwwUrl); + if (url.Contains("b23.tv/ss") || url.Contains("b23.tv/ep")) + { + url = url.Replace(ShortUrl, BangumiUrl); + } + else + { + url = url.Replace(ShortUrl, VideoUrl); + } + if (!url.StartsWith(baseUrl)) { return ""; } return url.Replace(baseUrl, "");