mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-08 20:38:24 +02:00
32 lines
729 B
C#
32 lines
729 B
C#
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
|
|
{
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|