Skip to content

Commit

Permalink
Use shortId if uniqueId is empty.
Browse files Browse the repository at this point in the history
  • Loading branch information
kctekn committed Dec 17, 2024
1 parent d30198d commit ae8ed85
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/BlueCatKoKo.Ui/Services/DouYinShortVideoService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
using System.IO;
using System.Net.Http;
using System.Text.RegularExpressions;
using System.Xml;
using BlueCatKoKo.Ui.Constants;
using BlueCatKoKo.Ui.Models;
using Downloader;
Expand Down Expand Up @@ -108,7 +109,7 @@ public async Task<VideoModel> ExtractVideoDataAsync(string url)
Platform = ShortVideoPlatformEnum.DouYin,
VideoId = videoInfoData.AwemeId,
AuthorName = videoInfoData.Author.Nickname,
UniqueId = 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(),
Expand Down

0 comments on commit ae8ed85

Please sign in to comment.