From d737c13c4b9d1c3075fbe881c7c966a0ee63a9f0 Mon Sep 17 00:00:00 2001 From: "k.12f" Date: Sun, 19 Jan 2025 16:44:24 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E9=87=8D=E6=96=B0=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E5=BF=AB=E6=89=8B=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/BlueCatKoKo.Ui/Services/DouYinShortVideoService.cs | 4 +++- src/BlueCatKoKo.Ui/Services/KuaiShouShortVideoService.cs | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) 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,