Skip to content

Commit

Permalink
Use a constant to store the metadata provider name
Browse files Browse the repository at this point in the history
  • Loading branch information
revam committed Aug 30, 2021
1 parent addbe23 commit bd4a996
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 6 deletions.
2 changes: 2 additions & 0 deletions Shokofin/Plugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ namespace Shokofin
{
public class Plugin : BasePlugin<PluginConfiguration>, IHasWebPages
{
public static string MetadataProviderName = "Shoko";

public override string Name => "Shoko";

public override Guid Id => Guid.Parse("5216ccbf-d24a-4eb3-8a7e-7da4230b7052");
Expand Down
2 changes: 1 addition & 1 deletion Shokofin/Providers/BoxSetProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ namespace Shokofin.Providers
{
public class BoxSetProvider : IRemoteMetadataProvider<BoxSet, BoxSetInfo>
{
public string Name => "Shoko";
public string Name => Plugin.MetadataProviderName;

private readonly IHttpClientFactory HttpClientFactory;

Expand Down
2 changes: 1 addition & 1 deletion Shokofin/Providers/EpisodeProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ namespace Shokofin.Providers
{
public class EpisodeProvider: IRemoteMetadataProvider<Episode, EpisodeInfo>
{
public string Name => "Shoko";
public string Name => Plugin.MetadataProviderName;

private readonly IHttpClientFactory HttpClientFactory;

Expand Down
2 changes: 1 addition & 1 deletion Shokofin/Providers/ImageProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ namespace Shokofin.Providers
{
public class ImageProvider : IRemoteImageProvider
{
public string Name => "Shoko";
public string Name => Plugin.MetadataProviderName;

private readonly IHttpClientFactory HttpClientFactory;

Expand Down
2 changes: 1 addition & 1 deletion Shokofin/Providers/MovieProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ namespace Shokofin.Providers
{
public class MovieProvider : IRemoteMetadataProvider<Movie, MovieInfo>
{
public string Name => "Shoko";
public string Name => Plugin.MetadataProviderName;

private readonly IHttpClientFactory HttpClientFactory;

Expand Down
2 changes: 1 addition & 1 deletion Shokofin/Providers/SeasonProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ namespace Shokofin.Providers
{
public class SeasonProvider : IRemoteMetadataProvider<Season, SeasonInfo>
{
public string Name => "Shoko";
public string Name => Plugin.MetadataProviderName;
private readonly IHttpClientFactory HttpClientFactory;
private readonly ILogger<SeasonProvider> Logger;

Expand Down
2 changes: 1 addition & 1 deletion Shokofin/Providers/SeriesProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ namespace Shokofin.Providers
{
public class SeriesProvider : IRemoteMetadataProvider<Series, SeriesInfo>
{
public string Name => "Shoko";
public string Name => Plugin.MetadataProviderName;

private readonly IHttpClientFactory HttpClientFactory;

Expand Down

0 comments on commit bd4a996

Please sign in to comment.