aboutsummaryrefslogtreecommitdiff
path: root/src/Jellyfin.Database/Jellyfin.Database.Implementations/MatchCriteria/HasMediaStreamType.cs
blob: 68f2ca2786ba6b2d0cfef1b87cb8a0ba1b66232b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
using Jellyfin.Database.Implementations.Entities;

namespace Jellyfin.Database.Implementations.MatchCriteria;

/// <summary>
/// Matches folders containing descendants with a specific media stream type and language.
/// </summary>
/// <param name="StreamType">The type of media stream to match (Audio, Subtitle, etc.).</param>
/// <param name="Language">The language to match.</param>
/// <param name="IsExternal">If not null, filters by internal (false) or external (true) streams. Only applicable to subtitles.</param>
public sealed record HasMediaStreamType(
    MediaStreamTypeEntity StreamType,
    string Language,
    bool? IsExternal = null) : FolderMatchCriteria;