增加图片+mp3的这种视频 解析
This commit is contained in:
+175
-149
@@ -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,218 +718,218 @@ 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; }
|
||||||
|
|
||||||
// [JsonProperty("artist_user_infos")]
|
//[JsonProperty("artist_user_infos")]
|
||||||
// public object ArtistUserInfos { get; set; }
|
//public object ArtistUserInfos { get; set; }
|
||||||
|
|
||||||
// [JsonProperty("artists")]
|
//[JsonProperty("artists")]
|
||||||
// public List<object> Artists { get; set; }
|
//public List<object> Artists { get; set; }
|
||||||
|
|
||||||
// [JsonProperty("audition_duration")]
|
//[JsonProperty("audition_duration")]
|
||||||
// public int AuditionDuration { get; set; }
|
//public int AuditionDuration { get; set; }
|
||||||
|
|
||||||
// [JsonProperty("author")]
|
//[JsonProperty("author")]
|
||||||
// public string Author { get; set; }
|
//public string Author { get; set; }
|
||||||
|
|
||||||
// [JsonProperty("author_deleted")]
|
//[JsonProperty("author_deleted")]
|
||||||
// public bool AuthorDeleted { get; set; }
|
//public bool AuthorDeleted { get; set; }
|
||||||
|
|
||||||
// [JsonProperty("author_position")]
|
//[JsonProperty("author_position")]
|
||||||
// public object AuthorPosition { get; set; }
|
//public object AuthorPosition { get; set; }
|
||||||
|
|
||||||
// [JsonProperty("author_status")]
|
//[JsonProperty("author_status")]
|
||||||
// public int AuthorStatus { get; set; }
|
//public int AuthorStatus { get; set; }
|
||||||
|
|
||||||
// [JsonProperty("avatar_large")]
|
//[JsonProperty("avatar_large")]
|
||||||
// public ImageInfo AvatarLarge { get; set; }
|
//public ImageInfo AvatarLarge { get; set; }
|
||||||
|
|
||||||
// [JsonProperty("avatar_medium")]
|
//[JsonProperty("avatar_medium")]
|
||||||
// public ImageInfo AvatarMedium { get; set; }
|
//public ImageInfo AvatarMedium { get; set; }
|
||||||
|
|
||||||
// [JsonProperty("avatar_thumb")]
|
//[JsonProperty("avatar_thumb")]
|
||||||
// public ImageInfo AvatarThumb { get; set; }
|
//public ImageInfo AvatarThumb { get; set; }
|
||||||
|
|
||||||
// [JsonProperty("binded_challenge_id")]
|
//[JsonProperty("binded_challenge_id")]
|
||||||
// public int BindedChallengeId { get; set; }
|
//public int BindedChallengeId { get; set; }
|
||||||
|
|
||||||
// [JsonProperty("can_background_play")]
|
//[JsonProperty("can_background_play")]
|
||||||
// public bool CanBackgroundPlay { get; set; }
|
//public bool CanBackgroundPlay { get; set; }
|
||||||
|
|
||||||
// [JsonProperty("collect_stat")]
|
//[JsonProperty("collect_stat")]
|
||||||
// public int CollectStat { get; set; }
|
//public int CollectStat { get; set; }
|
||||||
|
|
||||||
// [JsonProperty("cover_hd")]
|
//[JsonProperty("cover_hd")]
|
||||||
// public ImageInfo CoverHd { get; set; }
|
//public ImageInfo CoverHd { get; set; }
|
||||||
|
|
||||||
// [JsonProperty("cover_large")]
|
//[JsonProperty("cover_large")]
|
||||||
// public ImageInfo CoverLarge { get; set; }
|
//public ImageInfo CoverLarge { get; set; }
|
||||||
|
|
||||||
// [JsonProperty("cover_medium")]
|
//[JsonProperty("cover_medium")]
|
||||||
// public ImageInfo CoverMedium { get; set; }
|
//public ImageInfo CoverMedium { get; set; }
|
||||||
|
|
||||||
// [JsonProperty("cover_thumb")]
|
//[JsonProperty("cover_thumb")]
|
||||||
// public ImageInfo CoverThumb { get; set; }
|
//public ImageInfo CoverThumb { get; set; }
|
||||||
|
|
||||||
// [JsonProperty("dmv_auto_show")]
|
//[JsonProperty("dmv_auto_show")]
|
||||||
// public bool DmvAutoShow { get; set; }
|
//public bool DmvAutoShow { get; set; }
|
||||||
|
|
||||||
// [JsonProperty("dsp_status")]
|
//[JsonProperty("dsp_status")]
|
||||||
// public int DspStatus { get; set; }
|
//public int DspStatus { get; set; }
|
||||||
|
|
||||||
// [JsonProperty("duration")]
|
//[JsonProperty("duration")]
|
||||||
// public int Duration { get; set; }
|
//public int Duration { get; set; }
|
||||||
|
|
||||||
// [JsonProperty("end_time")]
|
//[JsonProperty("end_time")]
|
||||||
// public int EndTime { get; set; }
|
//public int EndTime { get; set; }
|
||||||
|
|
||||||
// [JsonProperty("external_song_info")]
|
//[JsonProperty("external_song_info")]
|
||||||
// public List<object> ExternalSongInfo { get; set; }
|
//public List<object> ExternalSongInfo { get; set; }
|
||||||
|
|
||||||
// [JsonProperty("extra")]
|
//[JsonProperty("extra")]
|
||||||
// public string Extra { get; set; }
|
//public string Extra { get; set; }
|
||||||
|
|
||||||
// [JsonProperty("id")]
|
//[JsonProperty("id")]
|
||||||
// public long Id { get; set; }
|
//public long Id { get; set; }
|
||||||
|
|
||||||
// [JsonProperty("id_str")]
|
//[JsonProperty("id_str")]
|
||||||
// public string IdStr { get; set; }
|
//public string IdStr { get; set; }
|
||||||
|
|
||||||
// [JsonProperty("is_audio_url_with_cookie")]
|
//[JsonProperty("is_audio_url_with_cookie")]
|
||||||
// public bool IsAudioUrlWithCookie { get; set; }
|
//public bool IsAudioUrlWithCookie { get; set; }
|
||||||
|
|
||||||
// [JsonProperty("is_commerce_music")]
|
//[JsonProperty("is_commerce_music")]
|
||||||
// public bool IsCommerceMusic { get; set; }
|
//public bool IsCommerceMusic { get; set; }
|
||||||
|
|
||||||
// [JsonProperty("is_del_video")]
|
//[JsonProperty("is_del_video")]
|
||||||
// public bool IsDelVideo { get; set; }
|
//public bool IsDelVideo { get; set; }
|
||||||
|
|
||||||
// [JsonProperty("is_matched_metadata")]
|
//[JsonProperty("is_matched_metadata")]
|
||||||
// public bool IsMatchedMetadata { get; set; }
|
//public bool IsMatchedMetadata { get; set; }
|
||||||
|
|
||||||
// [JsonProperty("is_original")]
|
//[JsonProperty("is_original")]
|
||||||
// public bool IsOriginal { get; set; }
|
//public bool IsOriginal { get; set; }
|
||||||
|
|
||||||
// [JsonProperty("is_original_sound")]
|
//[JsonProperty("is_original_sound")]
|
||||||
// public bool IsOriginalSound { get; set; }
|
//public bool IsOriginalSound { get; set; }
|
||||||
|
|
||||||
// [JsonProperty("is_pgc")]
|
//[JsonProperty("is_pgc")]
|
||||||
// public bool IsPgc { get; set; }
|
//public bool IsPgc { get; set; }
|
||||||
|
|
||||||
// [JsonProperty("is_restricted")]
|
//[JsonProperty("is_restricted")]
|
||||||
// public bool IsRestricted { get; set; }
|
//public bool IsRestricted { get; set; }
|
||||||
|
|
||||||
// [JsonProperty("is_video_self_see")]
|
//[JsonProperty("is_video_self_see")]
|
||||||
// public bool IsVideoSelfSee { get; set; }
|
//public bool IsVideoSelfSee { get; set; }
|
||||||
|
|
||||||
// [JsonProperty("lyric_short_position")]
|
//[JsonProperty("lyric_short_position")]
|
||||||
// public object LyricShortPosition { get; set; }
|
//public object LyricShortPosition { get; set; }
|
||||||
|
|
||||||
// [JsonProperty("mid")]
|
//[JsonProperty("mid")]
|
||||||
// public string Mid { get; set; }
|
//public string Mid { get; set; }
|
||||||
|
|
||||||
// [JsonProperty("music_chart_ranks")]
|
//[JsonProperty("music_chart_ranks")]
|
||||||
// public object MusicChartRanks { get; set; }
|
//public object MusicChartRanks { get; set; }
|
||||||
|
|
||||||
// [JsonProperty("music_collect_count")]
|
//[JsonProperty("music_collect_count")]
|
||||||
// public int MusicCollectCount { get; set; }
|
//public int MusicCollectCount { get; set; }
|
||||||
|
|
||||||
// [JsonProperty("music_cover_atmosphere_color_value")]
|
//[JsonProperty("music_cover_atmosphere_color_value")]
|
||||||
// public string MusicCoverAtmosphereColorValue { get; set; }
|
//public string MusicCoverAtmosphereColorValue { get; set; }
|
||||||
|
|
||||||
// [JsonProperty("music_status")]
|
//[JsonProperty("music_status")]
|
||||||
// public int MusicStatus { get; set; }
|
//public int MusicStatus { get; set; }
|
||||||
|
|
||||||
// [JsonProperty("musician_user_infos")]
|
//[JsonProperty("musician_user_infos")]
|
||||||
// public object MusicianUserInfos { get; set; }
|
//public object MusicianUserInfos { get; set; }
|
||||||
|
|
||||||
// [JsonProperty("mute_share")]
|
//[JsonProperty("mute_share")]
|
||||||
// public bool MuteShare { get; set; }
|
//public bool MuteShare { get; set; }
|
||||||
|
|
||||||
// [JsonProperty("offline_desc")]
|
//[JsonProperty("offline_desc")]
|
||||||
// public string OfflineDesc { get; set; }
|
//public string OfflineDesc { get; set; }
|
||||||
|
|
||||||
// [JsonProperty("owner_handle")]
|
//[JsonProperty("owner_handle")]
|
||||||
// public string OwnerHandle { get; set; }
|
//public string OwnerHandle { get; set; }
|
||||||
|
|
||||||
// [JsonProperty("owner_id")]
|
//[JsonProperty("owner_id")]
|
||||||
// public string OwnerId { get; set; }
|
//public string OwnerId { get; set; }
|
||||||
|
|
||||||
// [JsonProperty("owner_nickname")]
|
//[JsonProperty("owner_nickname")]
|
||||||
// public string OwnerNickname { get; set; }
|
//public string OwnerNickname { get; set; }
|
||||||
|
|
||||||
// [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; }
|
||||||
|
|
||||||
// [JsonProperty("prevent_download")]
|
//[JsonProperty("prevent_download")]
|
||||||
// public bool PreventDownload { get; set; }
|
//public bool PreventDownload { get; set; }
|
||||||
|
|
||||||
// [JsonProperty("prevent_item_download_status")]
|
//[JsonProperty("prevent_item_download_status")]
|
||||||
// public int PreventItemDownloadStatus { get; set; }
|
//public int PreventItemDownloadStatus { get; set; }
|
||||||
|
|
||||||
// [JsonProperty("preview_end_time")]
|
//[JsonProperty("preview_end_time")]
|
||||||
// public int PreviewEndTime { get; set; }
|
//public int PreviewEndTime { get; set; }
|
||||||
|
|
||||||
// [JsonProperty("preview_start_time")]
|
//[JsonProperty("preview_start_time")]
|
||||||
// public int PreviewStartTime { get; set; }
|
//public int PreviewStartTime { get; set; }
|
||||||
|
|
||||||
// [JsonProperty("reason_type")]
|
//[JsonProperty("reason_type")]
|
||||||
// public int ReasonType { get; set; }
|
//public int ReasonType { get; set; }
|
||||||
|
|
||||||
// [JsonProperty("redirect")]
|
//[JsonProperty("redirect")]
|
||||||
// public bool Redirect { get; set; }
|
//public bool Redirect { get; set; }
|
||||||
|
|
||||||
// [JsonProperty("schema_url")]
|
//[JsonProperty("schema_url")]
|
||||||
// public string SchemaUrl { get; set; }
|
//public string SchemaUrl { get; set; }
|
||||||
|
|
||||||
// [JsonProperty("search_impr")]
|
//[JsonProperty("search_impr")]
|
||||||
// public SearchImpr SearchImpr { get; set; }
|
//public SearchImpr SearchImpr { get; set; }
|
||||||
|
|
||||||
// [JsonProperty("sec_uid")]
|
//[JsonProperty("sec_uid")]
|
||||||
// public string SecUid { get; set; }
|
//public string SecUid { get; set; }
|
||||||
|
|
||||||
// [JsonProperty("shoot_duration")]
|
//[JsonProperty("shoot_duration")]
|
||||||
// public int ShootDuration { get; set; }
|
//public int ShootDuration { get; set; }
|
||||||
|
|
||||||
// [JsonProperty("show_origin_clip")]
|
//[JsonProperty("show_origin_clip")]
|
||||||
// public bool ShowOriginClip { get; set; }
|
//public bool ShowOriginClip { get; set; }
|
||||||
|
|
||||||
// [JsonProperty("source_platform")]
|
//[JsonProperty("source_platform")]
|
||||||
// public int SourcePlatform { get; set; }
|
//public int SourcePlatform { get; set; }
|
||||||
|
|
||||||
// [JsonProperty("start_time")]
|
//[JsonProperty("start_time")]
|
||||||
// public int StartTime { get; set; }
|
//public int StartTime { get; set; }
|
||||||
|
|
||||||
// [JsonProperty("status")]
|
//[JsonProperty("status")]
|
||||||
// public int Status { get; set; }
|
//public int Status { get; set; }
|
||||||
|
|
||||||
// [JsonProperty("strong_beat_url")]
|
//[JsonProperty("strong_beat_url")]
|
||||||
// public ImageInfo StrongBeatUrl { get; set; }
|
//public ImageInfo StrongBeatUrl { get; set; }
|
||||||
|
|
||||||
// [JsonProperty("tag_list")]
|
//[JsonProperty("tag_list")]
|
||||||
// public object TagList { get; set; }
|
//public object TagList { get; set; }
|
||||||
|
|
||||||
// [JsonProperty("title")]
|
//[JsonProperty("title")]
|
||||||
// public string Title { get; set; }
|
//public string Title { get; set; }
|
||||||
|
|
||||||
// [JsonProperty("unshelve_countries")]
|
//[JsonProperty("unshelve_countries")]
|
||||||
// public object UnshelveCountries { get; set; }
|
//public object UnshelveCountries { get; set; }
|
||||||
|
|
||||||
// [JsonProperty("user_count")]
|
//[JsonProperty("user_count")]
|
||||||
// public int UserCount { get; set; }
|
//public int UserCount { get; set; }
|
||||||
|
|
||||||
// [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; }
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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}]已完整同步过,后续只获取最新一页数据");
|
||||||
|
|||||||
Reference in New Issue
Block a user