Skip to content

Commit

Permalink
Refactor to use HttpClientFactory
Browse files Browse the repository at this point in the history
  • Loading branch information
crobibero committed Feb 11, 2024
1 parent 0e21d70 commit 6d1a8f5
Show file tree
Hide file tree
Showing 4 changed files with 429 additions and 418 deletions.
9 changes: 6 additions & 3 deletions Jellyfin.Plugin.Tvdb/Configuration/PluginConfiguration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,16 @@ namespace Jellyfin.Plugin.Tvdb.Configuration
public class PluginConfiguration : BasePluginConfiguration
{
/// <summary>
/// Gets or sets the tvdb api key for project.
/// Gets the tvdb api key for project.
/// </summary>
public string ProjectApiKey { get; set; } = string.Empty; // Jellyin Project API Key
public const string ProjectApiKey = "";

/// <summary>
/// Gets or sets the tvdb api key for user.
/// </summary>
public string ApiKey { get; set; } = string.Empty; // User API PIN
/// <remarks>
/// This is the subscriber's pin.
/// </remarks>
public string ApiKey { get; set; } = string.Empty;
}
}
2 changes: 1 addition & 1 deletion Jellyfin.Plugin.Tvdb/Providers/TvdbSeriesProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ private static void MapSeriesToResult(MetadataResult<Series> result, SeriesExten
series.Overview = tvdbSeries.Translations.OverviewTranslations.FirstOrDefault(x => string.Equals(x.Language, TvdbUtils.NormalizeLanguageToTvdb(info.MetadataLanguage), StringComparison.OrdinalIgnoreCase))?.Overview ?? tvdbSeries.Overview;
series.OriginalTitle = tvdbSeries.Name;
result.ResultLanguage = info.MetadataLanguage;
series.AirDays = TvdbUtils.GetAirDays(tvdbSeries.AirsDays);
series.AirDays = TvdbUtils.GetAirDays(tvdbSeries.AirsDays).ToArray();
series.AirTime = tvdbSeries.AirsTime;
// series.CommunityRating = (float?)tvdbSeries.SiteRating;
// Attempts to default to USA if not found
Expand Down
Loading

0 comments on commit 6d1a8f5

Please sign in to comment.