aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Api/Controllers/DlnaServerController.cs
diff options
context:
space:
mode:
authorPatrick Barron <barronpm@gmail.com>2023-10-11 11:05:14 -0400
committerPatrick Barron <barronpm@gmail.com>2023-10-11 11:05:14 -0400
commiteffc3d488c2e0df04189b18b8e47905b1f641f24 (patch)
treece6c103ec7b3b20f38e090f9d48136f4d3c89c92 /Jellyfin.Api/Controllers/DlnaServerController.cs
parent2b1454530b2a29db2769c3de4c025d457200303f (diff)
Use DI for ContentDirectoryService
Diffstat (limited to 'Jellyfin.Api/Controllers/DlnaServerController.cs')
-rw-r--r--Jellyfin.Api/Controllers/DlnaServerController.cs5
1 files changed, 3 insertions, 2 deletions
diff --git a/Jellyfin.Api/Controllers/DlnaServerController.cs b/Jellyfin.Api/Controllers/DlnaServerController.cs
index 95b296fae..178ba6d6e 100644
--- a/Jellyfin.Api/Controllers/DlnaServerController.cs
+++ b/Jellyfin.Api/Controllers/DlnaServerController.cs
@@ -33,10 +33,11 @@ public class DlnaServerController : BaseJellyfinApiController
/// Initializes a new instance of the <see cref="DlnaServerController"/> class.
/// </summary>
/// <param name="dlnaManager">Instance of the <see cref="IDlnaManager"/> interface.</param>
- public DlnaServerController(IDlnaManager dlnaManager)
+ /// <param name="contentDirectory">Instance of the <see cref="IContentDirectory"/> interface.</param>
+ public DlnaServerController(IDlnaManager dlnaManager, IContentDirectory contentDirectory)
{
_dlnaManager = dlnaManager;
- _contentDirectory = DlnaEntryPoint.Current.ContentDirectory;
+ _contentDirectory = contentDirectory;
_connectionManager = DlnaEntryPoint.Current.ConnectionManager;
_mediaReceiverRegistrar = DlnaEntryPoint.Current.MediaReceiverRegistrar;
}