增加图片+mp3的这种视频 解析

This commit is contained in:
jianzhichu
2025-11-19 21:24:20 +08:00
parent 8048f7e1e6
commit 7cacdaedd4
2 changed files with 176 additions and 149 deletions
+37 -11
View File
@@ -158,8 +158,8 @@ namespace dy.net.dto
//[JsonProperty("image_list")] //[JsonProperty("image_list")]
//public object ImageList { get; set; } //public object ImageList { get; set; }
//[JsonProperty("images")] [JsonProperty("images")]
//public object Images { get; set; } public List<ImageItemInfo> Images { get; set; }
//[JsonProperty("img_bitrate")] //[JsonProperty("img_bitrate")]
//public object ImgBitrate { get; set; } //public object ImgBitrate { get; set; }
@@ -218,8 +218,8 @@ namespace dy.net.dto
//[JsonProperty("is_top")] //[JsonProperty("is_top")]
//public int IsTop { get; set; } //public int IsTop { get; set; }
//[JsonProperty("is_use_music")] [JsonProperty("is_use_music")]
//public bool IsUseMusic { get; set; } public bool IsUseMusic { get; set; }
//[JsonProperty("item_stitch")] //[JsonProperty("item_stitch")]
//public int ItemStitch { get; set; } //public int ItemStitch { get; set; }
@@ -245,8 +245,8 @@ namespace dy.net.dto
//[JsonProperty("mix_info")] //[JsonProperty("mix_info")]
//public MixInfo MixInfo { get; set; } //public MixInfo MixInfo { get; set; }
//[JsonProperty("music")] [JsonProperty("music")]
//public Music Music { get; set; } public Music Music { get; set; }
//[JsonProperty("origin_duet_resource_uri")] //[JsonProperty("origin_duet_resource_uri")]
//public string OriginDuetResourceUri { get; set; } //public string OriginDuetResourceUri { get; set; }
@@ -718,8 +718,8 @@ namespace dy.net.dto
// public int Status { get; set; } // public int Status { get; set; }
//} //}
//public class Music public class Music
//{ {
//[JsonProperty("album")] //[JsonProperty("album")]
//public string Album { get; set; } //public string Album { get; set; }
@@ -864,8 +864,8 @@ namespace dy.net.dto
//[JsonProperty("pgc_music_type")] //[JsonProperty("pgc_music_type")]
//public int PgcMusicType { get; set; } //public int PgcMusicType { get; set; }
// [JsonProperty("play_url")] [JsonProperty("play_url")]
// public ImageInfo PlayUrl { get; set; } public ImageInfo PlayUrl { get; set; }
//[JsonProperty("position")] //[JsonProperty("position")]
//public object Position { get; set; } //public object Position { get; set; }
@@ -929,7 +929,7 @@ namespace dy.net.dto
//[JsonProperty("video_duration")] //[JsonProperty("video_duration")]
//public int VideoDuration { get; set; } //public int VideoDuration { get; set; }
//} }
//public class SearchImpr //public class SearchImpr
//{ //{
@@ -1249,4 +1249,30 @@ namespace dy.net.dto
} }
public class ImageItemInfo
{
/// <summary>
///
/// </summary>
//public List<string> download_url_list { get; set; }
/// <summary>
///
/// </summary>
//public int height { get; set; }
///// <summary>
/////
///// </summary>
//public string uri { get; set; }
/// <summary>
///
/// </summary>
public List<string> url_list { get; set; }
/// <summary>
///
/// </summary>
//public int width { get; set; }
}
} }
+1
View File
@@ -84,6 +84,7 @@ namespace dy.net.job
{ {
var data = await _douyinService.SyncCollectVideos(cursor, count, cookie.Cookies); var data = await _douyinService.SyncCollectVideos(cursor, count, cookie.Cookies);
hasMore = data != null && data.HasMore == 1 && cookie.CollHasSyncd == 0; hasMore = data != null && data.HasMore == 1 && cookie.CollHasSyncd == 0;
break;
if (cookie.CollHasSyncd == 1) if (cookie.CollHasSyncd == 1)
{ {
Serilog.Log.Debug($"collect-Cookie[{cookie.UserName}]已完整同步过,后续只获取最新一页数据"); Serilog.Log.Debug($"collect-Cookie[{cookie.UserName}]已完整同步过,后续只获取最新一页数据");