cvium
52e2776d8e
Merge branch 'master' into simplify_authz
...
# Conflicts:
# Jellyfin.Api/Auth/SyncPlayAccessPolicy/SyncPlayAccessHandler.cs
2 years ago
cvium
209edd38a4
refactor: simplify authz
2 years ago
Bond_009
52230d1c30
Return NotFound when itemId isn't found
2 years ago
Shadowghost
f5f890e685
Migrate to file-scoped namespaces
2 years ago
Bond_009
e21f4adc16
Fix wrong usage of ArgumentNullException.ThrowIfNull
2 years ago
Bond_009
b366dc2e6e
Use ArgumentException.ThrowIfNullOrEmpty
2 years ago
Bond_009
c7d50d640e
Replace == null with is null
2 years ago
Bond_009
f6af28cf96
Fix some things that slipped through the cracks
2 years ago
cvium
5dc30c6a6d
fix: use HttpContext and ClaimsPrincipal instead of IAuthorizationContext
2 years ago
Bond_009
f50a250cd9
Optimize Guid comparisons
...
* 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
3 years ago
Cody Robibero
32629cd7da
Use BaseItemKind where possible
3 years ago
Patrick Barron
a0c6f72762
Migrate authentication db to EF Core
4 years ago
Patrick Barron
a225f34796
Merge branch 'master' into authenticationdb-efcore
...
# Conflicts:
# Jellyfin.Api/Helpers/RequestHelpers.cs
4 years ago
Patrick Barron
8607b52541
Make device/session code async
4 years ago
BrianCArnold
4fa2a32d81
Apply suggestions from code review
...
Co-authored-by: Claus Vium <cvium@users.noreply.github.com>
4 years ago
BrianCArnold
af03b280bc
Update SessionController.cs
4 years ago
BrianCArnold
80fe48fda9
Update SessionController.cs
...
Removed unnecessary construction of POCO to represent data from POST body
4 years ago
Brian Arnold
ca25301e64
Added Required attribute to Text property of MessageCommand.
4 years ago
Brian C. Arnold
998833ea6e
Removed null check for body object and user [Required] attribute in replacement.
4 years ago
Brian Arnold
f114ba57dd
Fixed comment and code block runes to match coding
...
standards required by Jellyfin team.
4 years ago
Brian Arnold
81e3e5ca48
Changed SessionController.SendMessageCommand
...
implementation receive data in the POST body, as that is how the
jellyfin-web client currently posts the data to the server.
Resolves : #5628
4 years ago
lmaonator
694d772b11
Update Jellyfin.Api/Controllers/SessionController.cs
...
Co-authored-by: Cody Robibero <cody@robibe.ro>
4 years ago
lmaonator
db2fbcef2b
Fix stream selection having no effect when casting
...
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.
4 years ago
crobibero
c8c5feacb6
Convert ClientCapabilities to a Dto with JsonConverters
4 years ago
crobibero
3cc0dd7e12
Reduce RequestHelpers.Split usage and remove RequestHelpers.GetGuids usage.
4 years ago
crobibero
f2a86d9c80
Remove CommaDelimitedArrayModelBinderProvider
4 years ago
github@esslinger.dev
c3e7eb3a6f
Merge branch '4214-supported-commands-enum' of https://github.com/skyfrk/jellyfin into 4214-supported-commands-enum
4 years ago
github@esslinger.dev
9aad772288
feat: implement CommaDelimitedArrayModelBinderProvider
4 years ago
Simon Eßlinger
d10090b394
fix: remove unused null check
...
Co-authored-by: Cody Robibero <cody@robibe.ro>
4 years ago
github@esslinger.dev
ba12ea7f4a
feat: use CommaDelimitedArrayModelBinder to retain API
4 years ago
github@esslinger.dev
dd4f3a7c51
feat: convert supportedCommands strings to enums
4 years ago
Anthony Lavado
af24c43118
Merge pull request #4192 from nielsvanvelzen/generalcommand-sucks
...
Use GeneralCommandType enum in GeneralCommand
4 years ago
Niels van Velzen
891c538f81
Use GeneralCommandType in SessionController parameters
4 years ago
Niels van Velzen
3459655bb4
Use GeneralCommandType enum in GeneralCommand name
4 years ago
BaronGreenback
f71812abc0
Update SessionController.cs
4 years ago
BaronGreenback
9cb37ae9c2
Update Jellyfin.Api/Controllers/SessionController.cs
...
Co-authored-by: Cody Robibero <cody@robibe.ro>
4 years ago
BaronGreenback
701d54260d
Update SessionController.cs
4 years ago
BaronGreenback
7050525f6b
Update SessionController.cs
4 years ago
BaronGreenback
d8e8d298ea
Update Jellyfin.Api/Controllers/SessionController.cs
...
Co-authored-by: Claus Vium <cvium@users.noreply.github.com>
4 years ago
BaronGreenback
eee977a77b
Update Jellyfin.Api/Controllers/SessionController.cs
...
Co-authored-by: Claus Vium <cvium@users.noreply.github.com>
4 years ago
BaronGreenback
4dae7d0521
Update Jellyfin.Api/Controllers/SessionController.cs
...
Co-authored-by: Claus Vium <cvium@users.noreply.github.com>
4 years ago
BaronGreenback
ea7b3699c2
Update SessionController.cs
...
removed space
4 years ago
BaronGreenback
8738fe570a
Update SessionController.cs
4 years ago
BaronGreenback
81db323f88
Update SessionController.cs
4 years ago
crobibero
63ebae2f9e
Remove nullable from required
4 years ago
crobibero
14de45602b
fix play command route
4 years ago
crobibero
7294dc103f
Fix api routes
4 years ago
crobibero
29fc882037
merge all attributes
4 years ago
crobibero
59d47ec3f5
Make all FromRoute required
4 years ago
crobibero
07e7125d07
Fix dlna play to
4 years ago