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,8 +230,12 @@ public class JellyfinSessionManager : IDisposable
|
|||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
// Optionally notify Jellyfin that the session is ending
|
// Report playback stopped to Jellyfin
|
||||||
// (Jellyfin will auto-cleanup inactive sessions anyway)
|
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);
|
await _proxyService.PostJsonAsync("Sessions/Logout", "{}", session.Headers);
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
|
|||||||
@@ -387,9 +387,9 @@
|
|||||||
border: 1px solid var(--border);
|
border: 1px solid var(--border);
|
||||||
border-radius: 12px;
|
border-radius: 12px;
|
||||||
padding: 24px;
|
padding: 24px;
|
||||||
max-width: 800px;
|
max-width: 75%;
|
||||||
width: 90%;
|
width: 75%;
|
||||||
max-height: 90vh;
|
max-height: 65vh;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user