[PR #9679] [CLOSED] feat: api Sessions/Simple, returns SimpleSessionInfo #12015

Closed
opened 2025-12-22 09:04:01 +01:00 by backuprepo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/jellyfin/jellyfin/pull/9679
Author: @SamJongenelen
Created: 4/24/2023
Status: Closed

Base: masterHead: master


📝 Commits (3)

  • 26cab42 feat: api Sessions/Simple which returns more simplified object SimpleSessionInfo.
  • a56f6f3 fix trailing whitespace
  • 5fc8896 Merge branch 'jellyfin:master' into master

📊 Changes

3 files changed (+109 additions, -1 deletions)

View changed files

📝 Jellyfin.Api/Controllers/SessionController.cs (+59 -0)
MediaBrowser.Controller/Session/SimpleSessionInfo.cs (+39 -0)
📝 tests/Jellyfin.Server.Integration.Tests/Controllers/SessionControllerTests.cs (+11 -1)

📄 Description

Changes

Added Server API endpoint session/Simple, which returns more simplified, flattened SimpleSessionInfo objects.

Returning SimpleSessionInfo simplifies consuming the JF Rest API - it is much smaller (I am using interval 30sec) and the flattened structure helps automations for me in HomeAssistant.

Open questions:

  • do we accept this addition to Sessions API
  • is the created SimpleSessionInfo complete enough (I was thinking maybe add Bandwith or Quality information too)

Issues

https://github.com/jellyfin/jellyfin/issues/9665


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/jellyfin/jellyfin/pull/9679 **Author:** [@SamJongenelen](https://github.com/SamJongenelen) **Created:** 4/24/2023 **Status:** ❌ Closed **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (3) - [`26cab42`](https://github.com/jellyfin/jellyfin/commit/26cab42496ee581444a7a80f11d63cad7ff04d1f) feat: api Sessions/Simple which returns more simplified object SimpleSessionInfo. - [`a56f6f3`](https://github.com/jellyfin/jellyfin/commit/a56f6f3660fc24d322d80bb1fc04d3b8d59e6ce7) fix trailing whitespace - [`5fc8896`](https://github.com/jellyfin/jellyfin/commit/5fc88960250a0532d1d403cabac6d2a053380607) Merge branch 'jellyfin:master' into master ### 📊 Changes **3 files changed** (+109 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `Jellyfin.Api/Controllers/SessionController.cs` (+59 -0) ➕ `MediaBrowser.Controller/Session/SimpleSessionInfo.cs` (+39 -0) 📝 `tests/Jellyfin.Server.Integration.Tests/Controllers/SessionControllerTests.cs` (+11 -1) </details> ### 📄 Description <!-- Ensure your title is short, descriptive, and in the imperative mood (Fix X, Change Y, instead of Fixed X, Changed Y). For a good inspiration of what to write in commit messages and PRs please review https://chris.beams.io/posts/git-commit/ and our documentation. --> **Changes** <!-- Describe your changes here in 1-5 sentences. --> Added Server API endpoint `session/Simple`, which returns more simplified, flattened `SimpleSessionInfo` objects. Returning `SimpleSessionInfo` simplifies consuming the JF Rest API - it is much smaller (I am using interval 30sec) and the flattened structure helps automations for me in HomeAssistant. Open questions: - [ ] do we accept this addition to Sessions API - [ ] is the created `SimpleSessionInfo` complete enough (I was thinking maybe add Bandwith or Quality information too) **Issues** <!-- Tag any issues that this PR solves here. ex. Fixes # --> https://github.com/jellyfin/jellyfin/issues/9665 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
backuprepo 2025-12-22 09:04:01 +01:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: starred/jellyfin#12015
No description provided.