diff --git a/allstarr/Services/Jellyfin/JellyfinSessionManager.cs b/allstarr/Services/Jellyfin/JellyfinSessionManager.cs index 859cde3..382947b 100644 --- a/allstarr/Services/Jellyfin/JellyfinSessionManager.cs +++ b/allstarr/Services/Jellyfin/JellyfinSessionManager.cs @@ -230,13 +230,17 @@ public class JellyfinSessionManager : IDisposable try { - // Optionally notify Jellyfin that the session is ending - // (Jellyfin will auto-cleanup inactive sessions anyway) + // Report playback stopped to Jellyfin + var stopPayload = JsonSerializer.Serialize(new { }); + await _proxyService.PostJsonAsync("Sessions/Playing/Stopped", stopPayload, session.Headers); + _logger.LogDebug("🛑 SESSION: Reported playback stopped for {DeviceId}", deviceId); + + // Notify Jellyfin that the session is ending await _proxyService.PostJsonAsync("Sessions/Logout", "{}", session.Headers); } catch (Exception ex) { - _logger.LogWarning("⚠️ SESSION: Error removing session for {DeviceId}: {Message}", deviceId, ex.Message); + _logger.LogWarning("⚠️ SESSION: Error removing session for {DeviceId}: {Message}", deviceId, ex.Message); } } } diff --git a/allstarr/wwwroot/index.html b/allstarr/wwwroot/index.html index 0baa412..4a4a665 100644 --- a/allstarr/wwwroot/index.html +++ b/allstarr/wwwroot/index.html @@ -387,9 +387,9 @@ border: 1px solid var(--border); border-radius: 12px; padding: 24px; - max-width: 800px; - width: 90%; - max-height: 90vh; + max-width: 75%; + width: 75%; + max-height: 65vh; overflow-y: auto; }