mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-15 10:43:30 +01:00
@@ -47,10 +47,10 @@ namespace MediaBrowser.Common.Plugins
|
||||
var assemblyFilePath = assembly.Location;
|
||||
|
||||
var dataFolderPath = Path.Combine(ApplicationPaths.PluginsPath, Path.GetFileNameWithoutExtension(assemblyFilePath));
|
||||
if (!Directory.Exists(dataFolderPath) && Version != null)
|
||||
if (Version != null && !Directory.Exists(dataFolderPath))
|
||||
{
|
||||
// Try again with the version number appended to the folder name.
|
||||
dataFolderPath = dataFolderPath + "_" + Version.ToString();
|
||||
dataFolderPath += "_" + Version.ToString();
|
||||
}
|
||||
|
||||
SetAttributes(assemblyFilePath, dataFolderPath, assemblyName.Version);
|
||||
|
||||
Reference in New Issue
Block a user