Skip to content

Commit

Permalink
refactor: drop ordering information for now
Browse files Browse the repository at this point in the history
Don't request the ordering information for now. We'll request it later if we need it for any future features.
  • Loading branch information
revam committed Nov 17, 2024
1 parent 0892eff commit 6da574c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 62 deletions.
61 changes: 0 additions & 61 deletions Shokofin/API/Models/TMDB/TmdbEpisode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,6 @@ public class TmdbEpisode {
/// </summary>
public IReadOnlyList<Role> Crew { get; set; } = [];

/// <summary>
/// All available ordering for the episode, if they should be included.
/// </summary>
public IReadOnlyList<OrderingInformation> Ordering { get; set; } = [];

/// <summary>
/// TMDB episode to file cross-references.
/// </summary>
Expand All @@ -112,60 +107,4 @@ public class TmdbEpisode {
/// remote.
/// </summary>
public DateTime LastUpdatedAt { get; set; }

public class OrderingInformation {
/// <summary>
/// The ordering ID.
/// </summary>
[JsonPropertyName("OrderingID")]
public string OrderingId { get; set; } = string.Empty;

/// <summary>
/// The alternate ordering type. Will not be set if the main ordering is
/// used.
/// </summary>
public AlternateOrderingType? OrderingType { get; set; }

/// <summary>
/// English name of the alternate ordering scheme.
/// </summary>
public string OrderingName { get; set; } = string.Empty;

/// <summary>
/// The season id. Will be a stringified integer for the main ordering,
/// or a hex id any alternate ordering.
/// </summary>
[JsonPropertyName("SeasonID")]
public string SeasonId { get; set; } = string.Empty;

/// <summary>
/// English name of the season.
/// </summary>
public string SeasonName { get; set; } = string.Empty;

/// <summary>
/// The season number for the ordering.
/// </summary>
public int SeasonNumber { get; set; }

/// <summary>
/// The episode number for the ordering.
/// </summary>
public int EpisodeNumber { get; set; }

/// <summary>
/// Indicates the current ordering is the default ordering for the episode.
/// </summary>
public bool IsDefault { get; set; }

/// <summary>
/// Indicates the current ordering is the preferred ordering for the episode.
/// </summary>
public bool IsPreferred { get; set; }

/// <summary>
/// Indicates the current ordering is in use for the episode.
/// </summary>
public bool InUse { get; set; }
}
}
2 changes: 1 addition & 1 deletion Shokofin/API/ShokoAPIClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ public Task<Episode> GetEpisode(string id)

public Task<TmdbEpisode> GetTmdbEpisode(string tmdbId)
{
return Get<TmdbEpisode>($"/api/v3/TMDB/Episode/${tmdbId}?include=Titles,Overviews,Images,Ordering,CrossReferences,Cast,Crew,FileCrossReferences");
return Get<TmdbEpisode>($"/api/v3/TMDB/Episode/${tmdbId}?include=Titles,Overviews,Images,CrossReferences,Cast,Crew,FileCrossReferences");
}

public async Task<EpisodeImages?> GetEpisodeImages(string id)
Expand Down

0 comments on commit 6da574c

Please sign in to comment.