Return list result directly for MediaAttachments.

This commit is contained in:
Andrew Mahone 2019-11-04 10:37:19 -05:00
parent ad2101ce52
commit 7110069b39

View File

@ -130,28 +130,23 @@ namespace Emby.Server.Implementations.Library
public List<MediaAttachment> GetMediaAttachments(MediaAttachmentQuery query)
{
var list = _itemRepo.GetMediaAttachments(query);
return list;
return _itemRepo.GetMediaAttachments(query);
}
public List<MediaAttachment> GetMediaAttachments(string mediaSourceId)
{
var list = GetMediaAttachments(new MediaAttachmentQuery
return GetMediaAttachments(new MediaAttachmentQuery
{
ItemId = new Guid(mediaSourceId)
});
return list;
}
public List<MediaAttachment> GetMediaAttachments(Guid itemId)
{
var list = GetMediaAttachments(new MediaAttachmentQuery
return GetMediaAttachments(new MediaAttachmentQuery
{
ItemId = itemId
});
return list;
}
public async Task<List<MediaSourceInfo>> GetPlayackMediaSources(BaseItem item, User user, bool allowMediaProbe, bool enablePathSubstitution, CancellationToken cancellationToken)