mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-07-08 23:00:51 +02:00
Support MediaAttachment retrieval in MediaSourceManager.
This commit is contained in:
parent
03ecf57548
commit
1513c76a3e
|
@ -128,6 +128,32 @@ namespace Emby.Server.Implementations.Library
|
||||||
return streams;
|
return streams;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public List<MediaAttachment> GetMediaAttachments(MediaAttachmentQuery query)
|
||||||
|
{
|
||||||
|
var list = _itemRepo.GetMediaAttachments(query);
|
||||||
|
return list;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<MediaAttachment> GetMediaAttachments(string mediaSourceId)
|
||||||
|
{
|
||||||
|
var list = GetMediaAttachments(new MediaAttachmentQuery
|
||||||
|
{
|
||||||
|
ItemId = new Guid(mediaSourceId)
|
||||||
|
});
|
||||||
|
|
||||||
|
return list;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<MediaAttachment> GetMediaAttachments(Guid itemId)
|
||||||
|
{
|
||||||
|
var list = GetMediaAttachments(new MediaAttachmentQuery
|
||||||
|
{
|
||||||
|
ItemId = itemId
|
||||||
|
});
|
||||||
|
|
||||||
|
return list;
|
||||||
|
}
|
||||||
|
|
||||||
public async Task<List<MediaSourceInfo>> GetPlayackMediaSources(BaseItem item, User user, bool allowMediaProbe, bool enablePathSubstitution, CancellationToken cancellationToken)
|
public async Task<List<MediaSourceInfo>> GetPlayackMediaSources(BaseItem item, User user, bool allowMediaProbe, bool enablePathSubstitution, CancellationToken cancellationToken)
|
||||||
{
|
{
|
||||||
var mediaSources = GetStaticMediaSources(item, enablePathSubstitution, user);
|
var mediaSources = GetStaticMediaSources(item, enablePathSubstitution, user);
|
||||||
|
|
|
@ -38,6 +38,25 @@ namespace MediaBrowser.Controller.Library
|
||||||
/// <returns>IEnumerable<MediaStream>.</returns>
|
/// <returns>IEnumerable<MediaStream>.</returns>
|
||||||
List<MediaStream> GetMediaStreams(MediaStreamQuery query);
|
List<MediaStream> GetMediaStreams(MediaStreamQuery query);
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets the media attachments.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="">The item identifier.</param>
|
||||||
|
/// <returns>IEnumerable<MediaAttachment>.</returns>
|
||||||
|
List<MediaAttachment> GetMediaAttachments(Guid itemId);
|
||||||
|
/// <summary>
|
||||||
|
/// Gets the media attachments.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="">The The media source identifier.</param>
|
||||||
|
/// <returns>IEnumerable<MediaAttachment>.</returns>
|
||||||
|
List<MediaAttachment> GetMediaAttachments(string mediaSourceId);
|
||||||
|
/// <summary>
|
||||||
|
/// Gets the media attachments.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="">The query.</param>
|
||||||
|
/// <returns>IEnumerable<MediaAttachment>.</returns>
|
||||||
|
List<MediaAttachment> GetMediaAttachments(MediaAttachmentQuery query);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets the playack media sources.
|
/// Gets the playack media sources.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
Loading…
Reference in a new issue