trimmed IPluginConfigurationPage

This commit is contained in:
LukePulverenti 2013-03-05 18:11:20 -05:00
parent 80f61013f5
commit c320434719
2 changed files with 5 additions and 16 deletions

View File

@ -1,4 +1,4 @@
using System;
using MediaBrowser.Common.Plugins;
using System.IO;
namespace MediaBrowser.Controller.Plugins
@ -21,27 +21,16 @@ namespace MediaBrowser.Controller.Plugins
ConfigurationPageType ConfigurationPageType { get; }
/// <summary>
/// Gets the plugin id.
/// Gets the plugin.
/// </summary>
/// <value>The plugin id.</value>
Guid? PluginId { get; }
/// <value>The plugin.</value>
IPlugin Plugin { get; }
/// <summary>
/// Gets the HTML stream.
/// </summary>
/// <returns>Stream.</returns>
Stream GetHtmlStream();
/// <summary>
/// Gets the version. Typically taken from Plugin.Version
/// </summary>
/// <value>The version.</value>
string Version { get; }
/// <summary>
/// For http caching purposes. Typically taken from Plugin.AssemblyDateLastModified
/// </summary>
DateTime DateLastModified { get; }
}
/// <summary>

View File

@ -149,7 +149,7 @@ namespace MediaBrowser.WebDashboard.Api
{
var page = ServerEntryPoint.Instance.PluginConfigurationPages.First(p => p.Name.Equals(request.Name, StringComparison.OrdinalIgnoreCase));
return ToStaticResult(page.Version.GetMD5(), page.DateLastModified, null, MimeTypes.GetMimeType("page.html"), () => ModifyHtml(page.GetHtmlStream()));
return ToStaticResult(page.Plugin.Version.ToString().GetMD5(), page.Plugin.AssemblyDateLastModified, null, MimeTypes.GetMimeType("page.html"), () => ModifyHtml(page.GetHtmlStream()));
}
/// <summary>