aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Api/Controllers/SessionController.cs
AgeCommit message (Collapse)Author
2025-02-13Make the JsonConverters for delimited arrays more generic (#13396)Bond-009
* Make the JsonConverters for delimited arrays more generic Also adds some tests for serialization (with different types) as we didn't have any before. * Ignore warnings
2024-09-24Fix get sessions with api key (#12696)gnattu
2024-09-18Return empty response instead of not foundShadowghost
2024-09-18Add SessionInfoDto, DeviceInfoDto and implement ↵Shadowghost
JsonDelimitedArrayConverter.Write
2024-09-18Don't expose hwaccel type for non-admin (#12663)gnattu
2024-04-21Limit sessions per user (#11370)Cody Robibero
2024-01-17Use helper function to compare guid (#10825)Cody Robibero
2024-01-06Remove some unused client capabilities and sync code (#10812)Niels van Velzen
2023-11-29Make "activeWithinSeconds" independent from "controllableByUserId" in ↵felix920506
GetSessions Fixes issue #10610
2023-11-12Move API policies to MediaBrowser.CommonPatrick Barron
2023-10-10Convert string MediaType to enum MediaTypeCody Robibero
2023-02-12Merge branch 'master' into simplify_authzcvium
# Conflicts: # Jellyfin.Api/Auth/SyncPlayAccessPolicy/SyncPlayAccessHandler.cs
2023-02-09refactor: simplify authzcvium
2023-02-04Return NotFound when itemId isn't foundBond_009
2023-02-02Migrate to file-scoped namespacesShadowghost
2022-12-07Fix wrong usage of ArgumentNullException.ThrowIfNullBond_009
2022-12-07Use ArgumentException.ThrowIfNullOrEmptyBond_009
2022-12-05Replace == null with is nullBond_009
2022-10-11Fix some things that slipped through the cracksBond_009
2022-10-06fix: use HttpContext and ClaimsPrincipal instead of IAuthorizationContextcvium
2022-02-21Optimize Guid comparisonsBond_009
* Use Guid.Equals(Guid) instead of the == override * Ban the usage of Guid.Equals(Object) to prevent accidental boxing * Compare to default(Guid) instead of Guid.Empty
2021-12-12Use BaseItemKind where possibleCody Robibero
2021-05-20Migrate authentication db to EF CorePatrick Barron
2021-05-18Merge branch 'master' into authenticationdb-efcorePatrick Barron
# Conflicts: # Jellyfin.Api/Helpers/RequestHelpers.cs
2021-04-10Make device/session code asyncPatrick Barron
2021-03-31Apply suggestions from code reviewBrianCArnold
Co-authored-by: Claus Vium <cvium@users.noreply.github.com>
2021-03-31Update SessionController.csBrianCArnold
2021-03-30Update SessionController.csBrianCArnold
Removed unnecessary construction of POCO to represent data from POST body
2021-03-29Added Required attribute to Text property of MessageCommand.Brian Arnold
2021-03-27Removed null check for body object and user [Required] attribute in replacement.Brian C. Arnold
2021-03-27Fixed comment and code block runes to match codingBrian Arnold
standards required by Jellyfin team.
2021-03-27Changed SessionController.SendMessageCommandBrian Arnold
implementation receive data in the POST body, as that is how the jellyfin-web client currently posts the data to the server. Resolves: #5628
2021-03-26Update Jellyfin.Api/Controllers/SessionController.cslmaonator
Co-authored-by: Cody Robibero <cody@robibe.ro>
2021-03-26Fix stream selection having no effect when castinglmaonator
When casting to jellyfin-mpv-shim from jellyfin-web in the browser, jellyfin-web sends data about which version (for grouped items) and which streams the user selected in the browser to the "Sessions/{sessionId}/Playing" API endpoint. The API endpoint currently doesn't forward them to jellyfin-mpv-shim through the Play command, which results in the default streams being played instead of the browser selected ones. PlayRequest already has the properties and they are already sent to the cast client by SendPlayCommand when present. jellyfin-mpv-shim will already use them to select the wanted streams when it receives the Play command. All that's needed to make it work is to take the parameters and assign them to PlayRequest.
2020-11-21Convert ClientCapabilities to a Dto with JsonConverterscrobibero
2020-11-16Reduce RequestHelpers.Split usage and remove RequestHelpers.GetGuids usage.crobibero
2020-10-14Remove CommaDelimitedArrayModelBinderProvidercrobibero
2020-10-02Merge branch '4214-supported-commands-enum' of ↵github@esslinger.dev
https://github.com/skyfrk/jellyfin into 4214-supported-commands-enum
2020-10-02feat: implement CommaDelimitedArrayModelBinderProvidergithub@esslinger.dev
2020-10-01fix: remove unused null checkSimon Eßlinger
Co-authored-by: Cody Robibero <cody@robibe.ro>
2020-10-01feat: use CommaDelimitedArrayModelBinder to retain APIgithub@esslinger.dev
2020-10-01feat: convert supportedCommands strings to enumsgithub@esslinger.dev
2020-09-23Merge pull request #4192 from nielsvanvelzen/generalcommand-sucksAnthony Lavado
Use GeneralCommandType enum in GeneralCommand
2020-09-21Use GeneralCommandType in SessionController parametersNiels van Velzen
2020-09-21Use GeneralCommandType enum in GeneralCommand nameNiels van Velzen
2020-09-20Update SessionController.csBaronGreenback
2020-09-20Update Jellyfin.Api/Controllers/SessionController.csBaronGreenback
Co-authored-by: Cody Robibero <cody@robibe.ro>
2020-09-19Update SessionController.csBaronGreenback
2020-09-19Update SessionController.csBaronGreenback
2020-09-19Update Jellyfin.Api/Controllers/SessionController.csBaronGreenback
Co-authored-by: Claus Vium <cvium@users.noreply.github.com>