diff options
| author | 1hitsong <3330318+1hitsong@users.noreply.github.com> | 2022-09-15 19:44:12 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-09-15 19:44:12 -0400 |
| commit | 7520a1998569f0ba58008016c10de21d66b6b836 (patch) | |
| tree | e9604465149f04cb5a9aa54ccc7b2deb4c42699e /Emby.Server.Implementations | |
| parent | 31ec521f5ebfdffc1c38b4c67e7632933041a988 (diff) | |
| parent | c0dae0fef5255f27071b8dd84e8468a3e1ad29bf (diff) | |
Merge pull request #1 from JIntrocaso/lyric-lrc-file-support
Adds lyric providers to DI pipeline
Diffstat (limited to 'Emby.Server.Implementations')
| -rw-r--r-- | Emby.Server.Implementations/ApplicationHost.cs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Emby.Server.Implementations/ApplicationHost.cs b/Emby.Server.Implementations/ApplicationHost.cs index 91a16c199d..3e9c540e7b 100644 --- a/Emby.Server.Implementations/ApplicationHost.cs +++ b/Emby.Server.Implementations/ApplicationHost.cs @@ -46,6 +46,7 @@ using Emby.Server.Implementations.SyncPlay; using Emby.Server.Implementations.TV; using Emby.Server.Implementations.Updates; using Jellyfin.Api.Helpers; +using Jellyfin.Api.Models.UserDtos; using Jellyfin.MediaEncoding.Hls.Playlist; using Jellyfin.Networking.Configuration; using Jellyfin.Networking.Manager; @@ -580,6 +581,8 @@ namespace Emby.Server.Implementations serviceCollection.AddTransient(provider => new Lazy<ILibraryMonitor>(provider.GetRequiredService<ILibraryMonitor>)); serviceCollection.AddTransient(provider => new Lazy<IProviderManager>(provider.GetRequiredService<IProviderManager>)); serviceCollection.AddTransient(provider => new Lazy<IUserViewManager>(provider.GetRequiredService<IUserViewManager>)); + serviceCollection.AddTransient<ILyricsProvider, TxtLyricsProvider>(); + serviceCollection.AddTransient<ILyricsProvider, LrcLyricsProvider>(); serviceCollection.AddSingleton<ILibraryManager, LibraryManager>(); serviceCollection.AddSingleton<NamingOptions>(); |
