< Summary - Jellyfin

Information
Class: MediaBrowser.Controller.Library.ISimilarItemsProvider
Assembly: MediaBrowser.Controller
File(s): /srv/git/jellyfin/MediaBrowser.Controller/Library/ISimilarItemsProvider.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 1
Coverable lines: 1
Total lines: 26
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/16/2026 - 12:15:55 AM Line coverage: 0% (0/1) Total lines: 26

Metrics

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

File(s)

/srv/git/jellyfin/MediaBrowser.Controller/Library/ISimilarItemsProvider.cs

#LineLine coverage
 1using System;
 2using MediaBrowser.Model.Configuration;
 3
 4namespace MediaBrowser.Controller.Library;
 5
 6/// <summary>
 7/// Base marker interface for similar items providers.
 8/// </summary>
 9public interface ISimilarItemsProvider
 10{
 11    /// <summary>
 12    /// Gets the name of the provider.
 13    /// </summary>
 14    string Name { get; }
 15
 16    /// <summary>
 17    /// Gets the type of the provider.
 18    /// </summary>
 19    MetadataPluginType Type { get; }
 20
 21    /// <summary>
 22    /// Gets the cache duration for results from this provider.
 23    /// If null, results will not be cached.
 24    /// </summary>
 025    TimeSpan? CacheDuration => null;
 26}

Methods/Properties

get_CacheDuration()