Merge pull request #4633 from crobibero/guid-params
Use Guid as API parameter type where possible
This commit is contained in:
@@ -56,13 +56,11 @@ namespace Emby.Server.Implementations.TV
|
||||
return GetResult(GetNextUpEpisodes(request, user, new[] { presentationUniqueKey }, dtoOptions), request);
|
||||
}
|
||||
|
||||
var parentIdGuid = string.IsNullOrEmpty(request.ParentId) ? (Guid?)null : new Guid(request.ParentId);
|
||||
|
||||
BaseItem[] parents;
|
||||
|
||||
if (parentIdGuid.HasValue)
|
||||
if (request.ParentId.HasValue)
|
||||
{
|
||||
var parent = _libraryManager.GetItemById(parentIdGuid.Value);
|
||||
var parent = _libraryManager.GetItemById(request.ParentId.Value);
|
||||
|
||||
if (parent != null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user