mirror of
https://github.com/Crunchy-DL/Crunchy-Downloader.git
synced 2026-05-11 04:30:38 +00:00
Add - Added Artist/Concerts/Music video support https://github.com/Crunchy-DL/Crunchy-Downloader/issues/67 https://github.com/Crunchy-DL/Crunchy-Downloader/issues/46 Add - Added CC support https://github.com/Crunchy-DL/Crunchy-Downloader/issues/65 Fix - "No active subscrition" text shown with funimation sub https://github.com/Crunchy-DL/Crunchy-Downloader/issues/56
132 lines
No EOL
3.3 KiB
C#
132 lines
No EOL
3.3 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using Newtonsoft.Json;
|
|
|
|
namespace CRD.Utils.Structs.Crunchyroll.Music;
|
|
|
|
public struct CrunchyMusicVideoList{
|
|
public int Total{ get; set; }
|
|
public List<CrunchyMusicVideo>? Data{ get; set; }
|
|
public Meta Meta{ get; set; }
|
|
}
|
|
|
|
public class CrunchyMusicVideo{
|
|
|
|
[JsonProperty("copyright")]
|
|
public string? Copyright{ get; set; }
|
|
|
|
[JsonProperty("hash")]
|
|
public string? Hash{ get; set; }
|
|
|
|
[JsonProperty("availability")]
|
|
public MusicVideoAvailability? Availability{ get; set; }
|
|
|
|
[JsonProperty("isMature")]
|
|
public bool IsMature{ get; set; }
|
|
|
|
[JsonProperty("maturityRatings")]
|
|
public object? MaturityRatings{ get; set; }
|
|
|
|
[JsonProperty("title")]
|
|
public string? Title{ get; set; }
|
|
|
|
[JsonProperty("artists")]
|
|
public object? Artists{ get; set; }
|
|
|
|
[JsonProperty("displayArtistNameRequired")]
|
|
public bool DisplayArtistNameRequired{ get; set; }
|
|
|
|
[JsonProperty("streams_link")]
|
|
public string? StreamsLink{ get; set; }
|
|
|
|
[JsonProperty("matureBlocked")]
|
|
public bool MatureBlocked{ get; set; }
|
|
|
|
[JsonProperty("originalRelease")]
|
|
public DateTime? OriginalRelease{ get; set; }
|
|
|
|
[JsonProperty("sequenceNumber")]
|
|
public int SequenceNumber{ get; set; }
|
|
|
|
[JsonProperty("type")]
|
|
public string? Type{ get; set; }
|
|
|
|
[JsonProperty("animeIds")]
|
|
public List<string>? AnimeIds{ get; set; }
|
|
|
|
[JsonProperty("description")]
|
|
public string? Description{ get; set; }
|
|
|
|
[JsonProperty("durationMs")]
|
|
public int DurationMs{ get; set; }
|
|
|
|
[JsonProperty("licensor")]
|
|
public string? Licensor{ get; set; }
|
|
|
|
[JsonProperty("slug")]
|
|
public string? Slug{ get; set; }
|
|
|
|
[JsonProperty("artist")]
|
|
public MusicVideoArtist? Artist{ get; set; }
|
|
|
|
[JsonProperty("isPremiumOnly")]
|
|
public bool IsPremiumOnly{ get; set; }
|
|
|
|
[JsonProperty("isPublic")]
|
|
public bool IsPublic{ get; set; }
|
|
|
|
[JsonProperty("publishDate")]
|
|
public DateTime? PublishDate{ get; set; }
|
|
|
|
[JsonProperty("displayArtistName")]
|
|
public string? DisplayArtistName{ get; set; }
|
|
|
|
[JsonProperty("genres")]
|
|
public object? genres{ get; set; }
|
|
|
|
[JsonProperty("readyToPublish")]
|
|
public bool ReadyToPublish{ get; set; }
|
|
|
|
[JsonProperty("id")]
|
|
public string? Id{ get; set; }
|
|
|
|
[JsonProperty("createdAt")]
|
|
public DateTime? CreatedAt{ get; set; }
|
|
|
|
public MusicImages? Images{ get; set; }
|
|
|
|
[JsonProperty("updatedAt")]
|
|
public DateTime? UpdatedAt{ get; set; }
|
|
|
|
}
|
|
|
|
public struct MusicImages{
|
|
[JsonProperty("poster_tall")]
|
|
public List<Image>? PosterTall{ get; set; }
|
|
|
|
[JsonProperty("poster_wide")]
|
|
public List<Image>? PosterWide{ get; set; }
|
|
|
|
[JsonProperty("promo_image")]
|
|
public List<Image>? PromoImage{ get; set; }
|
|
|
|
public List<Image>? Thumbnail{ get; set; }
|
|
}
|
|
|
|
public struct MusicVideoArtist{
|
|
[JsonProperty("id")]
|
|
public string? Id{ get; set; }
|
|
[JsonProperty("name")]
|
|
public string? Name{ get; set; }
|
|
[JsonProperty("slug")]
|
|
public string? Slug{ get; set; }
|
|
|
|
}
|
|
|
|
public struct MusicVideoAvailability{
|
|
[JsonProperty("endDate")]
|
|
public DateTime? EndDate{ get; set; }
|
|
[JsonProperty("startDate")]
|
|
public DateTime? StartDate{ get; set; }
|
|
|
|
} |