mirror of
https://github.com/SoPat712/allstarr.git
synced 2026-02-09 23:55:10 -05:00
Adjust modal size to 75% width and 65% height, call PlaybackStopped when cleaning up sessions
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user