| | | 1 | | #nullable disable |
| | | 2 | | |
| | | 3 | | using System; |
| | | 4 | | using System.Collections.Generic; |
| | | 5 | | using MediaBrowser.Common.Configuration; |
| | | 6 | | using MediaBrowser.Common.Plugins; |
| | | 7 | | using MediaBrowser.Model.Plugins; |
| | | 8 | | using MediaBrowser.Model.Serialization; |
| | | 9 | | |
| | | 10 | | namespace MediaBrowser.Providers.Plugins.Tmdb |
| | | 11 | | { |
| | | 12 | | /// <summary> |
| | | 13 | | /// Plugin class for the TMDb library. |
| | | 14 | | /// </summary> |
| | | 15 | | public class Plugin : BasePlugin<PluginConfiguration>, IHasWebPages |
| | | 16 | | { |
| | | 17 | | /// <summary> |
| | | 18 | | /// Initializes a new instance of the <see cref="Plugin"/> class. |
| | | 19 | | /// </summary> |
| | | 20 | | /// <param name="applicationPaths">application paths.</param> |
| | | 21 | | /// <param name="xmlSerializer">xml serializer.</param> |
| | | 22 | | public Plugin(IApplicationPaths applicationPaths, IXmlSerializer xmlSerializer) |
| | 21 | 23 | | : base(applicationPaths, xmlSerializer) |
| | | 24 | | { |
| | 21 | 25 | | Instance = this; |
| | 21 | 26 | | } |
| | | 27 | | |
| | | 28 | | /// <summary> |
| | | 29 | | /// Gets the instance of TMDb plugin. |
| | | 30 | | /// </summary> |
| | | 31 | | public static Plugin Instance { get; private set; } |
| | | 32 | | |
| | | 33 | | /// <inheritdoc/> |
| | 24 | 34 | | public override Guid Id => new Guid("b8715ed1-6c47-4528-9ad3-f72deb539cd4"); |
| | | 35 | | |
| | | 36 | | /// <inheritdoc/> |
| | 29 | 37 | | public override string Name => "TMDb"; |
| | | 38 | | |
| | | 39 | | /// <inheritdoc/> |
| | 1 | 40 | | public override string Description => "Get metadata for movies and other video content from TheMovieDb."; |
| | | 41 | | |
| | | 42 | | // TODO remove when plugin removed from server. |
| | | 43 | | |
| | | 44 | | /// <inheritdoc/> |
| | 64 | 45 | | public override string ConfigurationFileName => "Jellyfin.Plugin.Tmdb.xml"; |
| | | 46 | | |
| | | 47 | | /// <summary> |
| | | 48 | | /// Return the plugin configuration page. |
| | | 49 | | /// </summary> |
| | | 50 | | /// <returns>PluginPageInfo.</returns> |
| | | 51 | | public IEnumerable<PluginPageInfo> GetPages() |
| | | 52 | | { |
| | | 53 | | yield return new PluginPageInfo |
| | | 54 | | { |
| | | 55 | | Name = Name, |
| | | 56 | | EmbeddedResourcePath = GetType().Namespace + ".Configuration.config.html" |
| | | 57 | | }; |
| | | 58 | | } |
| | | 59 | | } |
| | | 60 | | } |