mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-10-25 07:49:07 -04:00
36 lines
833 B
C#
36 lines
833 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using Autofac;
|
|
using Kyoo.Abstractions;
|
|
using Kyoo.Abstractions.Controllers;
|
|
using Kyoo.TheMovieDb.Models;
|
|
|
|
namespace Kyoo.TheMovieDb
|
|
{
|
|
/// <summary>
|
|
/// A plugin that add a <see cref="IMetadataProvider"/> for TheMovieDB.
|
|
/// </summary>
|
|
public class PluginTmdb : IPlugin
|
|
{
|
|
/// <inheritdoc />
|
|
public string Slug => "the-moviedb";
|
|
|
|
/// <inheritdoc />
|
|
public string Name => "TheMovieDb Provider";
|
|
|
|
/// <inheritdoc />
|
|
public string Description => "A metadata provider for TheMovieDB.";
|
|
|
|
/// <inheritdoc />
|
|
public Dictionary<string, Type> Configuration => new()
|
|
{
|
|
{ TheMovieDbOptions.Path, typeof(TheMovieDbOptions) }
|
|
};
|
|
|
|
/// <inheritdoc />
|
|
public void Configure(ContainerBuilder builder)
|
|
{
|
|
builder.RegisterProvider<TheMovieDbProvider>();
|
|
}
|
|
}
|
|
} |