diff --git a/src/BlueCatKoKo.Ui/Services/DouYinShortVideoService.cs b/src/BlueCatKoKo.Ui/Services/DouYinShortVideoService.cs index e88aedb..32117a7 100644 --- a/src/BlueCatKoKo.Ui/Services/DouYinShortVideoService.cs +++ b/src/BlueCatKoKo.Ui/Services/DouYinShortVideoService.cs @@ -109,7 +109,9 @@ public async Task ExtractVideoDataAsync(string url) Platform = ShortVideoPlatformEnum.DouYin, VideoId = videoInfoData.AwemeId, AuthorName = videoInfoData.Author.Nickname, - UniqueId = videoInfoData.Author.UniqueId==""?videoInfoData.Author.ShortId:videoInfoData.Author.UniqueId, + UniqueId = videoInfoData.Author.UniqueId == "" + ? videoInfoData.Author.ShortId + : videoInfoData.Author.UniqueId, AuthorAvatar = videoInfoData.Author.AvatarThumb.UrlList.First().ToString(), Title = videoInfoData.Author.Signature, Cover = videoInfoData.Video.Cover.UrlList.Last().ToString(), diff --git a/src/BlueCatKoKo.Ui/Services/KuaiShouShortVideoService.cs b/src/BlueCatKoKo.Ui/Services/KuaiShouShortVideoService.cs index 0dc033a..04570a2 100644 --- a/src/BlueCatKoKo.Ui/Services/KuaiShouShortVideoService.cs +++ b/src/BlueCatKoKo.Ui/Services/KuaiShouShortVideoService.cs @@ -169,6 +169,7 @@ public async Task ExtractVideoDataAsync(string url) VideoId = videoData.Manifest.VideoId, AuthorName = videoData.UserName, AuthorAvatar = videoData.HeadUrl.ToString(), + UniqueId = videoData.Manifest.VideoId, Title = videoData.Caption, Cover = videoData.CoverUrls.First().Url.ToString(), VideoUrl = videoData.MainMvUrls.First().Url.ToString(), @@ -176,7 +177,7 @@ public async Task ExtractVideoDataAsync(string url) CreatedTime = DateTimeOffset.FromUnixTimeMilliseconds(videoData.Timestamp) .ToString("yyyy-MM-dd HH:mm:ss"), - Desc = "暂无~", + Desc = videoData.Caption, Duration = videoData.Duration.ToString(), DiggCount = videoData.LikeCount, ViewCount = videoData.ViewCount,