diff --git a/Jellyfin.Plugin.Tvdb/Providers/TvdbPersonImageProvider.cs b/Jellyfin.Plugin.Tvdb/Providers/TvdbPersonImageProvider.cs index 6becb20..0e61606 100644 --- a/Jellyfin.Plugin.Tvdb/Providers/TvdbPersonImageProvider.cs +++ b/Jellyfin.Plugin.Tvdb/Providers/TvdbPersonImageProvider.cs @@ -1,11 +1,12 @@ using System; using System.Collections.Generic; -using System.Globalization; using System.Linq; using System.Net.Http; using System.Threading; using System.Threading.Tasks; + using Jellyfin.Data.Enums; + using MediaBrowser.Common.Net; using MediaBrowser.Controller.Dto; using MediaBrowser.Controller.Entities; @@ -14,8 +15,8 @@ using MediaBrowser.Controller.Providers; using MediaBrowser.Model.Entities; using MediaBrowser.Model.Providers; + using Microsoft.Extensions.Logging; -using Tvdb.Sdk; namespace Jellyfin.Plugin.Tvdb.Providers { diff --git a/Jellyfin.Plugin.Tvdb/Providers/TvdbSeasonImageProvider.cs b/Jellyfin.Plugin.Tvdb/Providers/TvdbSeasonImageProvider.cs index 4d37006..e92a7f6 100644 --- a/Jellyfin.Plugin.Tvdb/Providers/TvdbSeasonImageProvider.cs +++ b/Jellyfin.Plugin.Tvdb/Providers/TvdbSeasonImageProvider.cs @@ -1,6 +1,5 @@ using System; using System.Collections.Generic; -using System.Globalization; using System.Linq; using System.Net.Http; using System.Text.Json; diff --git a/Jellyfin.Plugin.Tvdb/Providers/TvdbSeriesImageProvider.cs b/Jellyfin.Plugin.Tvdb/Providers/TvdbSeriesImageProvider.cs index 1e39591..f41b967 100644 --- a/Jellyfin.Plugin.Tvdb/Providers/TvdbSeriesImageProvider.cs +++ b/Jellyfin.Plugin.Tvdb/Providers/TvdbSeriesImageProvider.cs @@ -1,6 +1,5 @@ using System; using System.Collections.Generic; -using System.Globalization; using System.Linq; using System.Net.Http; using System.Text.Json; diff --git a/Jellyfin.Plugin.Tvdb/TvdbPluginServiceRegistrator.cs b/Jellyfin.Plugin.Tvdb/TvdbPluginServiceRegistrator.cs index 6393269..c667de2 100644 --- a/Jellyfin.Plugin.Tvdb/TvdbPluginServiceRegistrator.cs +++ b/Jellyfin.Plugin.Tvdb/TvdbPluginServiceRegistrator.cs @@ -1,3 +1,5 @@ +using Jellyfin.Plugin.Tvdb.Providers; + using MediaBrowser.Controller; using MediaBrowser.Controller.Plugins; @@ -14,5 +16,6 @@ public class TvdbPluginServiceRegistrator : IPluginServiceRegistrator public void RegisterServices(IServiceCollection serviceCollection, IServerApplicationHost applicationHost) { serviceCollection.AddSingleton(); + serviceCollection.AddHostedService(); } }