< Summary - Jellyfin

Information
Class: Jellyfin.Database.Implementations.MatchCriteria.HasMediaStreamType
Assembly: Jellyfin.Database.Implementations
File(s): /srv/git/jellyfin/src/Jellyfin.Database/Jellyfin.Database.Implementations/MatchCriteria/HasMediaStreamType.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 6
Coverable lines: 6
Total lines: 31
Line coverage: 0%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Coverage history

Coverage history 0 25 50 75 100 5/4/2026 - 12:15:16 AM Line coverage: 0% (0/4) Total lines: 145/16/2026 - 12:15:55 AM Line coverage: 0% (0/6) Total lines: 31

Coverage delta

Coverage delta 1 -1

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
.ctor(...)100%210%
.ctor(...)100%210%

File(s)

/srv/git/jellyfin/src/Jellyfin.Database/Jellyfin.Database.Implementations/MatchCriteria/HasMediaStreamType.cs

#LineLine coverage
 1#pragma warning disable SA1313 // Parameter names should begin with lower-case letter
 2
 3using System.Collections.Generic;
 4using Jellyfin.Database.Implementations.Entities;
 5
 6namespace Jellyfin.Database.Implementations.MatchCriteria;
 7
 8/// <summary>
 9/// Matches folders containing descendants with a specific media stream type and language.
 10/// </summary>
 11/// <param name="StreamType">The type of media stream to match (Audio, Subtitle, etc.).</param>
 12/// <param name="Language">List of languages to match.</param>
 13/// <param name="IsExternal">If not null, filters by internal (false) or external (true) streams. Only applicable to sub
 014public sealed record HasMediaStreamType(
 015    MediaStreamTypeEntity StreamType,
 016    IReadOnlyCollection<string> Language,
 017    bool? IsExternal = null) : FolderMatchCriteria
 18{
 19    /// <summary>
 20    /// Initializes a new instance of the <see cref="HasMediaStreamType"/> class.
 21    /// </summary>
 22    /// <param name="StreamType">The type of media stream to match (Audio, Subtitle, etc.).</param>
 23    /// <param name="Language">The language to match.</param>
 24    /// <param name="IsExternal">If not null, filters by internal (false) or external (true) streams. Only applicable to
 25    public HasMediaStreamType(
 26        MediaStreamTypeEntity StreamType,
 27        string Language,
 028        bool? IsExternal = null) : this(StreamType, [Language], IsExternal)
 29    {
 030    }
 31}