Huge refactoring

Added person info provider
Added person image provider
Added trailers fetching
This commit is contained in:
PingWin committed 2021-05-22 22:21:08 +00:00
1 parent 35ce5536be
commit fce88168e8
43 files changed
+4381 -540

No files matched your search

@@ -1,6 +1,8 @@
using Jellyfin.Plugin.Kinopoisk.Api;
using System.Net.Http;
using KinopoiskUnofficialInfo.ApiClient;
using MediaBrowser.Common.Plugins;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
namespace Jellyfin.Plugin.Kinopoisk
{
@@ -11,7 +13,10 @@ namespace Jellyfin.Plugin.Kinopoisk
{
public void RegisterServices(IServiceCollection serviceCollection)
{
serviceCollection.AddSingleton<KinopoiskApiProxy>();
serviceCollection.AddSingleton<IKinopoiskApiClient>((sp) => new KinopoiskApiClient(
Plugin.Instance.Configuration.ApiToken,
sp.GetRequiredService<ILogger<KinopoiskApiClient>>(),
sp.GetRequiredService<IHttpClientFactory>()));
}
}
}