feat: 在视频解析页面中,新增支持视频av或bv号搜索

This commit is contained in:
Nlick47
2025-03-17 17:34:56 +08:00
parent c62aa7a527
commit 019295053d

View File

@@ -604,7 +604,8 @@ public class ViewVideoDetailViewModel : ViewModelBase
if (_infoService == null || refresh)
{
// 视频
if (ParseEntrance.IsAvUrl(input) || ParseEntrance.IsBvUrl(input))
if (ParseEntrance.IsAvUrl(input) || ParseEntrance.IsBvUrl(input)
|| ParseEntrance.IsAvId(input) || ParseEntrance.IsBvId(input))
{
_infoService = new VideoInfoService(input);
}