From 1b06e05cf69815e523faaf9e237461fe0541c7ce Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Fri, 14 Nov 2014 01:27:10 -0500 Subject: update translations --- .../Migrations/DeprecatePlugins.cs | 32 ++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 MediaBrowser.Server.Startup.Common/Migrations/DeprecatePlugins.cs (limited to 'MediaBrowser.Server.Startup.Common/Migrations') diff --git a/MediaBrowser.Server.Startup.Common/Migrations/DeprecatePlugins.cs b/MediaBrowser.Server.Startup.Common/Migrations/DeprecatePlugins.cs new file mode 100644 index 0000000000..ce4665b26c --- /dev/null +++ b/MediaBrowser.Server.Startup.Common/Migrations/DeprecatePlugins.cs @@ -0,0 +1,32 @@ +using MediaBrowser.Controller; +using System.IO; + +namespace MediaBrowser.Server.Startup.Common.Migrations +{ + public class DeprecatePlugins : IVersionMigration + { + private readonly IServerApplicationPaths _appPaths; + + public DeprecatePlugins(IServerApplicationPaths appPaths) + { + _appPaths = appPaths; + } + + public void Run() + { + RemovePlugin("MediaBrowser.Plugins.LocalTrailers.dll"); + } + + private void RemovePlugin(string filename) + { + try + { + File.Delete(Path.Combine(_appPaths.PluginsPath, filename)); + } + catch + { + + } + } + } +} -- cgit v1.2.3