diff options
| author | Bond-009 <bond.009@outlook.com> | 2026-05-15 10:00:53 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-05-15 10:00:53 +0200 |
| commit | 8e602f982f79201cc316f64baf018a5a536d38f6 (patch) | |
| tree | 94af198766ed00d736b31918b709e366f226845b /MediaBrowser.Controller/Library/ISimilarItemsProvider.cs | |
| parent | 097097300a473c7abe9d578169f60c39174345f1 (diff) | |
| parent | 0b209fe66b33bfeed1b1259efba31ceb643c4e0e (diff) | |
Merge pull request #15970 from Shadowghost/similarity
Implement similarity providers
Diffstat (limited to 'MediaBrowser.Controller/Library/ISimilarItemsProvider.cs')
| -rw-r--r-- | MediaBrowser.Controller/Library/ISimilarItemsProvider.cs | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/MediaBrowser.Controller/Library/ISimilarItemsProvider.cs b/MediaBrowser.Controller/Library/ISimilarItemsProvider.cs new file mode 100644 index 0000000000..0d089369a8 --- /dev/null +++ b/MediaBrowser.Controller/Library/ISimilarItemsProvider.cs @@ -0,0 +1,26 @@ +using System; +using MediaBrowser.Model.Configuration; + +namespace MediaBrowser.Controller.Library; + +/// <summary> +/// Base marker interface for similar items providers. +/// </summary> +public interface ISimilarItemsProvider +{ + /// <summary> + /// Gets the name of the provider. + /// </summary> + string Name { get; } + + /// <summary> + /// Gets the type of the provider. + /// </summary> + MetadataPluginType Type { get; } + + /// <summary> + /// Gets the cache duration for results from this provider. + /// If null, results will not be cached. + /// </summary> + TimeSpan? CacheDuration => null; +} |
