aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Server/CoreAppHost.cs
diff options
context:
space:
mode:
authorNiels van Velzen <git@ndat.nl>2023-06-20 16:51:07 +0200
committerNiels van Velzen <git@ndat.nl>2023-06-23 21:13:20 +0200
commit6de56f05186b77042a611112d82208b8fa8675fb (patch)
treefc240188be55246860d6b091cccbb4a81813fd66 /Jellyfin.Server/CoreAppHost.cs
parenta1eb2f6ea8cd78d527f1ae395378419f016208ab (diff)
Add support for lyric provider plugins
Diffstat (limited to 'Jellyfin.Server/CoreAppHost.cs')
-rw-r--r--Jellyfin.Server/CoreAppHost.cs6
1 files changed, 6 insertions, 0 deletions
diff --git a/Jellyfin.Server/CoreAppHost.cs b/Jellyfin.Server/CoreAppHost.cs
index 939376dd8..0c6315c66 100644
--- a/Jellyfin.Server/CoreAppHost.cs
+++ b/Jellyfin.Server/CoreAppHost.cs
@@ -22,6 +22,7 @@ using MediaBrowser.Controller.Lyrics;
using MediaBrowser.Controller.Net;
using MediaBrowser.Controller.Security;
using MediaBrowser.Model.Activity;
+using MediaBrowser.Providers.Lyric;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
@@ -93,6 +94,11 @@ namespace Jellyfin.Server
serviceCollection.AddSingleton(typeof(ILyricProvider), type);
}
+ foreach (var type in GetExportTypes<ILyricParser>())
+ {
+ serviceCollection.AddSingleton(typeof(ILyricParser), type);
+ }
+
base.RegisterServices(serviceCollection);
}