Remove use of AddParts. Cleanup use of Lyric vs Lyrics.

This commit is contained in:
1hitsong
2022-09-16 20:52:40 -04:00
parent f4fd908f8d
commit f740d1b9f0
11 changed files with 53 additions and 70 deletions

View File

@@ -19,6 +19,7 @@ using MediaBrowser.Controller.Devices;
using MediaBrowser.Controller.Drawing;
using MediaBrowser.Controller.Events;
using MediaBrowser.Controller.Library;
using MediaBrowser.Controller.Lyrics;
using MediaBrowser.Controller.Net;
using MediaBrowser.Controller.Security;
using MediaBrowser.Model.Activity;
@@ -95,6 +96,11 @@ namespace Jellyfin.Server
serviceCollection.AddScoped<IAuthenticationManager, AuthenticationManager>();
foreach (var type in GetExportTypes<ILyricProvider>())
{
serviceCollection.AddSingleton(typeof(ILyricProvider), type);
}
base.RegisterServices(serviceCollection);
}