diff options
| author | Claus Vium <cvium@users.noreply.github.com> | 2020-12-13 13:34:04 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-12-13 13:34:04 +0100 |
| commit | 13bb5e1ead9ee22efe28f120d9dced9b528dbf10 (patch) | |
| tree | 1905bad79f23e6c425167fae111d50b7a69f44b6 /Jellyfin.Api/Controllers/MediaInfoController.cs | |
| parent | f8ef38c0eafdfffe5314ae5514d5f8ee813fa3b7 (diff) | |
| parent | 297b7ea6fa81700e3b4cd4d86250495137499878 (diff) | |
Merge pull request #4761 from crobibero/playlist
Diffstat (limited to 'Jellyfin.Api/Controllers/MediaInfoController.cs')
| -rw-r--r-- | Jellyfin.Api/Controllers/MediaInfoController.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Jellyfin.Api/Controllers/MediaInfoController.cs b/Jellyfin.Api/Controllers/MediaInfoController.cs index a76dc057a..2a1da31c9 100644 --- a/Jellyfin.Api/Controllers/MediaInfoController.cs +++ b/Jellyfin.Api/Controllers/MediaInfoController.cs @@ -17,6 +17,7 @@ using MediaBrowser.Model.MediaInfo; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; +using Microsoft.AspNetCore.Mvc.ModelBinding; using Microsoft.Extensions.Logging; namespace Jellyfin.Api.Controllers @@ -119,7 +120,7 @@ namespace Jellyfin.Api.Controllers [FromQuery] bool? enableTranscoding, [FromQuery] bool? allowVideoStreamCopy, [FromQuery] bool? allowAudioStreamCopy, - [FromBody] PlaybackInfoDto? playbackInfoDto) + [FromBody(EmptyBodyBehavior = EmptyBodyBehavior.Allow)] PlaybackInfoDto? playbackInfoDto) { var authInfo = _authContext.GetAuthorizationInfo(Request); |
