mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-28 04:55:11 +01:00
update translations
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user