compatibility update

This commit is contained in:
Luke Pulverenti
2016-10-26 01:59:37 -04:00
parent 8c0a66ab1e
commit 51afe317ec
11 changed files with 23 additions and 58 deletions
@@ -1,44 +0,0 @@
using System.IO;
using MediaBrowser.Common.Plugins;
using MediaBrowser.Controller.Plugins;
namespace MediaBrowser.Plugins.VuPlus.Configuration
{
/// <summary>
/// Class VuPlusConfigurationPage
/// </summary>
class VuPlusConfigurationPage : IPluginConfigurationPage
{
/// <summary>
/// Gets the type of the configuration page.
/// </summary>
/// <value>The type of the configuration page.</value>
public ConfigurationPageType ConfigurationPageType
{
get { return ConfigurationPageType.PluginConfiguration; }
}
/// <summary>
/// Gets the HTML stream.
/// </summary>
/// <returns>Stream.</returns>
public Stream GetHtmlStream()
{
return GetType().Assembly.GetManifestResourceStream("MediaBrowser.Plugins.VuPlus.Configuration.configPage.html");
}
/// <summary>
/// Gets the name.
/// </summary>
/// <value>The name.</value>
public string Name
{
get { return "VuPlus"; }
}
public IPlugin Plugin
{
get { return VuPlus.Plugin.Instance; }
}
}
}
+6 -10
View File
@@ -32,19 +32,16 @@
<WarningLevel>4</WarningLevel> <WarningLevel>4</WarningLevel>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<Reference Include="Interfaces.IO"> <Reference Include="MediaBrowser.Common, Version=3.1.6143.3133, Culture=neutral, processorArchitecture=MSIL">
<HintPath>packages\Interfaces.IO.1.0.0.5\lib\portable-net45+sl4+wp71+win8+wpa81\Interfaces.IO.dll</HintPath> <HintPath>packages\MediaBrowser.Common.3.0.680\lib\net45\MediaBrowser.Common.dll</HintPath>
</Reference>
<Reference Include="MediaBrowser.Common, Version=3.1.6134.21286, Culture=neutral, processorArchitecture=MSIL">
<HintPath>packages\MediaBrowser.Common.3.0.664\lib\net45\MediaBrowser.Common.dll</HintPath>
<Private>True</Private> <Private>True</Private>
</Reference> </Reference>
<Reference Include="MediaBrowser.Controller, Version=3.1.6134.21286, Culture=neutral, processorArchitecture=MSIL"> <Reference Include="MediaBrowser.Controller, Version=3.1.6143.3132, Culture=neutral, processorArchitecture=MSIL">
<HintPath>packages\MediaBrowser.Server.Core.3.0.664\lib\net45\MediaBrowser.Controller.dll</HintPath> <HintPath>packages\MediaBrowser.Server.Core.3.0.680\lib\net45\MediaBrowser.Controller.dll</HintPath>
<Private>True</Private> <Private>True</Private>
</Reference> </Reference>
<Reference Include="MediaBrowser.Model, Version=3.1.6134.21287, Culture=neutral, processorArchitecture=MSIL"> <Reference Include="MediaBrowser.Model, Version=3.1.6143.3133, Culture=neutral, processorArchitecture=MSIL">
<HintPath>packages\MediaBrowser.Common.3.0.664\lib\net45\MediaBrowser.Model.dll</HintPath> <HintPath>packages\MediaBrowser.Common.3.0.680\lib\net45\MediaBrowser.Model.dll</HintPath>
<Private>True</Private> <Private>True</Private>
</Reference> </Reference>
<Reference Include="System" /> <Reference Include="System" />
@@ -59,7 +56,6 @@
<Compile Include="..\..\Emby.Plugins\SharedVersion.cs"> <Compile Include="..\..\Emby.Plugins\SharedVersion.cs">
<Link>Properties\SharedVersion.cs</Link> <Link>Properties\SharedVersion.cs</Link>
</Compile> </Compile>
<Compile Include="Configuration\VuPlusConfigurationPage.cs" />
<Compile Include="Configuration\PluginConfiguration.cs" /> <Compile Include="Configuration\PluginConfiguration.cs" />
<Compile Include="Helpers\GeneralHelpers.cs" /> <Compile Include="Helpers\GeneralHelpers.cs" />
<Compile Include="Helpers\EncryptionHelper.cs" /> <Compile Include="Helpers\EncryptionHelper.cs" />
+15 -1
View File
@@ -1,5 +1,7 @@
using System.Collections.Generic;
using MediaBrowser.Common.Configuration; using MediaBrowser.Common.Configuration;
using MediaBrowser.Common.Plugins; using MediaBrowser.Common.Plugins;
using MediaBrowser.Model.Plugins;
using MediaBrowser.Model.Serialization; using MediaBrowser.Model.Serialization;
using MediaBrowser.Plugins.VuPlus.Configuration; using MediaBrowser.Plugins.VuPlus.Configuration;
@@ -8,7 +10,7 @@ namespace MediaBrowser.Plugins.VuPlus
/// <summary> /// <summary>
/// Class Plugin /// Class Plugin
/// </summary> /// </summary>
public class Plugin : BasePlugin<PluginConfiguration> public class Plugin : BasePlugin<PluginConfiguration>, IHasWebPages
{ {
public Plugin(IApplicationPaths applicationPaths, IXmlSerializer xmlSerializer) public Plugin(IApplicationPaths applicationPaths, IXmlSerializer xmlSerializer)
: base(applicationPaths, xmlSerializer) : base(applicationPaths, xmlSerializer)
@@ -42,5 +44,17 @@ namespace MediaBrowser.Plugins.VuPlus
/// </summary> /// </summary>
/// <value>The instance.</value> /// <value>The instance.</value>
public static Plugin Instance { get; private set; } public static Plugin Instance { get; private set; }
public IEnumerable<PluginPageInfo> GetPages()
{
return new[]
{
new PluginPageInfo
{
Name = "vuplus",
EmbeddedResourcePath = "MediaBrowser.Plugins.VuPlus.Configuration.configPage.html"
}
};
}
} }
} }
+2 -3
View File
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<packages> <packages>
<package id="Interfaces.IO" version="1.0.0.5" targetFramework="net45" /> <package id="MediaBrowser.Common" version="3.0.680" targetFramework="net45" />
<package id="MediaBrowser.Common" version="3.0.664" targetFramework="net45" /> <package id="MediaBrowser.Server.Core" version="3.0.680" targetFramework="net45" />
<package id="MediaBrowser.Server.Core" version="3.0.664" targetFramework="net45" />
</packages> </packages>