Return list result directly for MediaAttachments.
This commit is contained in:
parent
ad2101ce52
commit
7110069b39
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user