mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-21 07:00:30 +01:00
Query media streams by type instead of filtering
This commit is contained in:
@@ -1107,10 +1107,16 @@ namespace MediaBrowser.Controller.Entities
|
||||
}
|
||||
|
||||
public virtual List<MediaStream> GetMediaStreams()
|
||||
{
|
||||
return GetMediaStreams(null);
|
||||
}
|
||||
|
||||
public virtual List<MediaStream> GetMediaStreams(MediaStreamType? type)
|
||||
{
|
||||
return MediaSourceManager.GetMediaStreams(new MediaStreamQuery
|
||||
{
|
||||
ItemId = Id
|
||||
ItemId = Id,
|
||||
Type = type
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user