Skip to content

Commit

Permalink
Update Property name
Browse files Browse the repository at this point in the history
  • Loading branch information
scampower3 committed Jul 17, 2024
1 parent 63a5371 commit 22f4c2c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Jellyfin.Plugin.Tvdb/Providers/TvdbSeasonProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ private MetadataResult<Season> MapSeasonToResult(SeasonInfo id, CustomSeasonExte

if (ImportSeasonName)
{
item.Name = season.Translations.GetTranslatedNamedOrDefaultIgnoreAlias(id.MetadataLanguage) ?? TvdbUtils.ReturnOriginalLanguageOrDefault(season.Name);
item.Name = season.Translations.GetTranslatedNamedOrDefaultIgnoreAliasProperty(id.MetadataLanguage) ?? TvdbUtils.ReturnOriginalLanguageOrDefault(season.Name);
item.OriginalTitle = season.Name;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ public sealed class CustomSeasonExtendedRecord
public System.Collections.Generic.IReadOnlyList<ArtworkBaseRecord> Artwork { get; set; } = default!;

[JsonPropertyName("companies")]

public Companies Companies { get; set; } = default!;

[JsonPropertyName("episodes")]
Expand Down
2 changes: 1 addition & 1 deletion Jellyfin.Plugin.Tvdb/TvdbSdkExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public static class TvdbSdkExtensions
/// <param name="translations">Available translations.</param>
/// <param name="language">Requested language.</param>
/// <returns>Translated Name, or <see langword="null"/>.</returns>
public static string? GetTranslatedNamedOrDefaultIgnoreAlias(this TranslationExtended? translations, string? language)
public static string? GetTranslatedNamedOrDefaultIgnoreAliasProperty(this TranslationExtended? translations, string? language)
{
return translations?
.NameTranslations?
Expand Down

0 comments on commit 22f4c2c

Please sign in to comment.