Added sync group page and settings
Build Plugin / build (push) Failing after 10s

This commit is contained in:
2025-12-14 11:25:58 +01:00
parent 52120529ff
commit 9723c13bd3
6 changed files with 529 additions and 3 deletions
@@ -5,6 +5,7 @@ using System.Threading;
using System.Threading.Tasks;
using Jellyfin.Data.Enums;
using Jellyfin.Plugin.JellyLMS.Models;
using MediaBrowser.Controller.Library;
using MediaBrowser.Controller.Session;
using MediaBrowser.Model.Session;
using Microsoft.Extensions.DependencyInjection;
@@ -177,13 +178,15 @@ public class LmsDeviceDiscoveryService : IHostedService, IDisposable
var isNew = !_registeredDeviceIds.ContainsKey(player.MacAddress);
// Add our controller to the session using EnsureController pattern
var libraryManager = _serviceProvider.GetRequiredService<ILibraryManager>();
var (controller, created) = session.EnsureController<LmsSessionController>(
s => new LmsSessionController(
_logger,
_lmsClient,
player,
s,
sessionManager));
sessionManager,
libraryManager));
if (created)
{