短链接支持番剧

croire 3 years ago
parent f5febf148a
commit c41c81db3d

@ -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, "");

Loading…
Cancel
Save