diff options
| author | Niels van Velzen <nielsvanvelzen@users.noreply.github.com> | 2022-03-18 22:16:08 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-03-18 22:16:08 +0100 |
| commit | 46798cb918a9b2869df944f953cb7fa94c0302a5 (patch) | |
| tree | c68f5fa66a6ddb238cf6f74781d47dba26b0668e /Jellyfin.Api/Controllers/UserViewsController.cs | |
| parent | 5cf0c1b8f8c7de7c299a6f20a53628aca6725435 (diff) | |
Remove check for non-existent "emby rt" client in UserViewsController (#7470)
Diffstat (limited to 'Jellyfin.Api/Controllers/UserViewsController.cs')
| -rw-r--r-- | Jellyfin.Api/Controllers/UserViewsController.cs | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/Jellyfin.Api/Controllers/UserViewsController.cs b/Jellyfin.Api/Controllers/UserViewsController.cs index 04171da8a..96d81b49a 100644 --- a/Jellyfin.Api/Controllers/UserViewsController.cs +++ b/Jellyfin.Api/Controllers/UserViewsController.cs @@ -65,7 +65,7 @@ namespace Jellyfin.Api.Controllers /// <returns>An <see cref="OkResult"/> containing the user views.</returns> [HttpGet("Users/{userId}/Views")] [ProducesResponseType(StatusCodes.Status200OK)] - public async Task<ActionResult<QueryResult<BaseItemDto>>> GetUserViews( + public QueryResult<BaseItemDto> GetUserViews( [FromRoute, Required] Guid userId, [FromQuery] bool? includeExternalContent, [FromQuery, ModelBinder(typeof(CommaDelimitedArrayModelBinder))] string[] presetViews, @@ -87,12 +87,6 @@ namespace Jellyfin.Api.Controllers query.PresetViews = presetViews; } - var app = (await _authContext.GetAuthorizationInfo(Request).ConfigureAwait(false)).Client ?? string.Empty; - if (app.IndexOf("emby rt", StringComparison.OrdinalIgnoreCase) != -1) - { - query.PresetViews = new[] { CollectionType.Movies, CollectionType.TvShows }; - } - var folders = _userViewManager.GetUserViews(query); var dtoOptions = new DtoOptions().AddClientFields(Request); |
