|
|
|
@ -10,6 +10,7 @@ using MediaBrowser.Controller.Entities;
|
|
|
|
|
using MediaBrowser.Controller.Library;
|
|
|
|
|
using MediaBrowser.Controller.Playlists;
|
|
|
|
|
using MediaBrowser.Model.Dto;
|
|
|
|
|
using MediaBrowser.Model.Entities;
|
|
|
|
|
using MediaBrowser.Model.Querying;
|
|
|
|
|
using Microsoft.AspNetCore.Authorization;
|
|
|
|
|
using Microsoft.AspNetCore.Http;
|
|
|
|
@ -71,7 +72,7 @@ namespace Jellyfin.Api.Controllers
|
|
|
|
|
[FromQuery] bool? enableImages,
|
|
|
|
|
[FromQuery] bool? enableUserData,
|
|
|
|
|
[FromQuery] int? imageTypeLimit,
|
|
|
|
|
[FromQuery] string? enableImageTypes)
|
|
|
|
|
[FromQuery] ImageType[] enableImageTypes)
|
|
|
|
|
{
|
|
|
|
|
var item = _libraryManager.GetItemById(id);
|
|
|
|
|
var user = userId.HasValue && !userId.Equals(Guid.Empty)
|
|
|
|
@ -108,7 +109,7 @@ namespace Jellyfin.Api.Controllers
|
|
|
|
|
[FromQuery] bool? enableImages,
|
|
|
|
|
[FromQuery] bool? enableUserData,
|
|
|
|
|
[FromQuery] int? imageTypeLimit,
|
|
|
|
|
[FromQuery] string? enableImageTypes)
|
|
|
|
|
[FromQuery] ImageType[] enableImageTypes)
|
|
|
|
|
{
|
|
|
|
|
var album = _libraryManager.GetItemById(id);
|
|
|
|
|
var user = userId.HasValue && !userId.Equals(Guid.Empty)
|
|
|
|
@ -145,7 +146,7 @@ namespace Jellyfin.Api.Controllers
|
|
|
|
|
[FromQuery] bool? enableImages,
|
|
|
|
|
[FromQuery] bool? enableUserData,
|
|
|
|
|
[FromQuery] int? imageTypeLimit,
|
|
|
|
|
[FromQuery] string? enableImageTypes)
|
|
|
|
|
[FromQuery] ImageType[] enableImageTypes)
|
|
|
|
|
{
|
|
|
|
|
var playlist = (Playlist)_libraryManager.GetItemById(id);
|
|
|
|
|
var user = userId.HasValue && !userId.Equals(Guid.Empty)
|
|
|
|
@ -182,7 +183,7 @@ namespace Jellyfin.Api.Controllers
|
|
|
|
|
[FromQuery] bool? enableImages,
|
|
|
|
|
[FromQuery] bool? enableUserData,
|
|
|
|
|
[FromQuery] int? imageTypeLimit,
|
|
|
|
|
[FromQuery] string? enableImageTypes)
|
|
|
|
|
[FromQuery] ImageType[] enableImageTypes)
|
|
|
|
|
{
|
|
|
|
|
var user = userId.HasValue && !userId.Equals(Guid.Empty)
|
|
|
|
|
? _userManager.GetUserById(userId.Value)
|
|
|
|
@ -218,7 +219,7 @@ namespace Jellyfin.Api.Controllers
|
|
|
|
|
[FromQuery] bool? enableImages,
|
|
|
|
|
[FromQuery] bool? enableUserData,
|
|
|
|
|
[FromQuery] int? imageTypeLimit,
|
|
|
|
|
[FromQuery] string? enableImageTypes)
|
|
|
|
|
[FromQuery] ImageType[] enableImageTypes)
|
|
|
|
|
{
|
|
|
|
|
var item = _libraryManager.GetItemById(id);
|
|
|
|
|
var user = userId.HasValue && !userId.Equals(Guid.Empty)
|
|
|
|
@ -255,7 +256,7 @@ namespace Jellyfin.Api.Controllers
|
|
|
|
|
[FromQuery] bool? enableImages,
|
|
|
|
|
[FromQuery] bool? enableUserData,
|
|
|
|
|
[FromQuery] int? imageTypeLimit,
|
|
|
|
|
[FromQuery] string? enableImageTypes)
|
|
|
|
|
[FromQuery] ImageType[] enableImageTypes)
|
|
|
|
|
{
|
|
|
|
|
var item = _libraryManager.GetItemById(id);
|
|
|
|
|
var user = userId.HasValue && !userId.Equals(Guid.Empty)
|
|
|
|
@ -292,7 +293,7 @@ namespace Jellyfin.Api.Controllers
|
|
|
|
|
[FromQuery] bool? enableImages,
|
|
|
|
|
[FromQuery] bool? enableUserData,
|
|
|
|
|
[FromQuery] int? imageTypeLimit,
|
|
|
|
|
[FromQuery] string? enableImageTypes)
|
|
|
|
|
[FromQuery] ImageType[] enableImageTypes)
|
|
|
|
|
{
|
|
|
|
|
var item = _libraryManager.GetItemById(id);
|
|
|
|
|
var user = userId.HasValue && !userId.Equals(Guid.Empty)
|
|
|
|
|