mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-03-13 21:56:20 +00:00
update translations
This commit is contained in:
@@ -253,6 +253,19 @@ namespace MediaBrowser.Server.Startup.Common
|
||||
NativeApp = nativeApp;
|
||||
}
|
||||
|
||||
private Version _version;
|
||||
/// <summary>
|
||||
/// Gets the current application version
|
||||
/// </summary>
|
||||
/// <value>The application version.</value>
|
||||
public override Version ApplicationVersion
|
||||
{
|
||||
get
|
||||
{
|
||||
return _version ?? (_version = NativeApp.GetType().Assembly.GetName().Version);
|
||||
}
|
||||
}
|
||||
|
||||
public override bool IsRunningAsService
|
||||
{
|
||||
get { return NativeApp.IsRunningAsService; }
|
||||
@@ -327,6 +340,7 @@ namespace MediaBrowser.Server.Startup.Common
|
||||
new PlaylistImages(ServerConfigurationManager).Run();
|
||||
new RenameXbmcOptions(ServerConfigurationManager).Run();
|
||||
new RenameXmlOptions(ServerConfigurationManager).Run();
|
||||
new DeprecatePlugins(ApplicationPaths).Run();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using MediaBrowser.Common.Net;
|
||||
using System;
|
||||
using MediaBrowser.Common.Net;
|
||||
using MediaBrowser.Model.Logging;
|
||||
using System.Collections.Generic;
|
||||
using System.Reflection;
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<DebugType>None</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
@@ -60,6 +60,7 @@
|
||||
<Compile Include="FFMpeg\FFMpegDownloadInfo.cs" />
|
||||
<Compile Include="FFMpeg\FFMpegInfo.cs" />
|
||||
<Compile Include="INativeApp.cs" />
|
||||
<Compile Include="Migrations\DeprecatePlugins.cs" />
|
||||
<Compile Include="Migrations\IVersionMigration.cs" />
|
||||
<Compile Include="Migrations\MigrateUserFolders.cs" />
|
||||
<Compile Include="Migrations\PlaylistImages.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
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user