< Summary - Jellyfin

Information
Class: Emby.Server.Implementations.Data.ItemTypeLookup
Assembly: Emby.Server.Implementations
File(s): /srv/git/jellyfin/Emby.Server.Implementations/Data/ItemTypeLookup.cs
Line coverage
100%
Covered lines: 42
Uncovered lines: 0
Coverable lines: 42
Total lines: 64
Line coverage: 100%
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 3/26/2026 - 12:14:14 AM Line coverage: 100% (42/42) Total lines: 64

Metrics

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

File(s)

/srv/git/jellyfin/Emby.Server.Implementations/Data/ItemTypeLookup.cs

#LineLine coverage
 1using System.Collections.Frozen;
 2using System.Collections.Generic;
 3using System.Threading.Channels;
 4using Emby.Server.Implementations.Playlists;
 5using Jellyfin.Data.Enums;
 6using MediaBrowser.Controller.Entities;
 7using MediaBrowser.Controller.Entities.Audio;
 8using MediaBrowser.Controller.Entities.Movies;
 9using MediaBrowser.Controller.Entities.TV;
 10using MediaBrowser.Controller.LiveTv;
 11using MediaBrowser.Controller.Persistence;
 12using MediaBrowser.Controller.Playlists;
 13
 14namespace Emby.Server.Implementations.Data;
 15
 16/// <inheritdoc />
 17public class ItemTypeLookup : IItemTypeLookup
 18{
 19    /// <inheritdoc />
 2420    public IReadOnlyList<string> MusicGenreTypes { get; } = [
 2421         typeof(Audio).FullName!,
 2422         typeof(MusicVideo).FullName!,
 2423         typeof(MusicAlbum).FullName!,
 2424         typeof(MusicArtist).FullName!,
 2425    ];
 26
 27    /// <inheritdoc />
 2428    public IReadOnlyDictionary<BaseItemKind, string> BaseItemKindNames { get; } = new Dictionary<BaseItemKind, string>()
 2429    {
 2430        { BaseItemKind.AggregateFolder, typeof(AggregateFolder).FullName! },
 2431        { BaseItemKind.Audio, typeof(Audio).FullName! },
 2432        { BaseItemKind.AudioBook, typeof(AudioBook).FullName! },
 2433        { BaseItemKind.BasePluginFolder, typeof(BasePluginFolder).FullName! },
 2434        { BaseItemKind.Book, typeof(Book).FullName! },
 2435        { BaseItemKind.BoxSet, typeof(BoxSet).FullName! },
 2436        { BaseItemKind.Channel, typeof(Channel).FullName! },
 2437        { BaseItemKind.CollectionFolder, typeof(CollectionFolder).FullName! },
 2438        { BaseItemKind.Episode, typeof(Episode).FullName! },
 2439        { BaseItemKind.Folder, typeof(Folder).FullName! },
 2440        { BaseItemKind.Genre, typeof(Genre).FullName! },
 2441        { BaseItemKind.Movie, typeof(Movie).FullName! },
 2442        { BaseItemKind.LiveTvChannel, typeof(LiveTvChannel).FullName! },
 2443        { BaseItemKind.LiveTvProgram, typeof(LiveTvProgram).FullName! },
 2444        { BaseItemKind.MusicAlbum, typeof(MusicAlbum).FullName! },
 2445        { BaseItemKind.MusicArtist, typeof(MusicArtist).FullName! },
 2446        { BaseItemKind.MusicGenre, typeof(MusicGenre).FullName! },
 2447        { BaseItemKind.MusicVideo, typeof(MusicVideo).FullName! },
 2448        { BaseItemKind.Person, typeof(Person).FullName! },
 2449        { BaseItemKind.Photo, typeof(Photo).FullName! },
 2450        { BaseItemKind.PhotoAlbum, typeof(PhotoAlbum).FullName! },
 2451        { BaseItemKind.Playlist, typeof(Playlist).FullName! },
 2452        { BaseItemKind.PlaylistsFolder, typeof(PlaylistsFolder).FullName! },
 2453        { BaseItemKind.Season, typeof(Season).FullName! },
 2454        { BaseItemKind.Series, typeof(Series).FullName! },
 2455        { BaseItemKind.Studio, typeof(Studio).FullName! },
 2456        { BaseItemKind.Trailer, typeof(Trailer).FullName! },
 2457        { BaseItemKind.TvChannel, typeof(LiveTvChannel).FullName! },
 2458        { BaseItemKind.TvProgram, typeof(LiveTvProgram).FullName! },
 2459        { BaseItemKind.UserRootFolder, typeof(UserRootFolder).FullName! },
 2460        { BaseItemKind.UserView, typeof(UserView).FullName! },
 2461        { BaseItemKind.Video, typeof(Video).FullName! },
 2462        { BaseItemKind.Year, typeof(Year).FullName! }
 2463    }.ToFrozenDictionary();
 64}

Methods/Properties

.ctor()