|
|
@ -1,4 +1,3 @@
|
|
|
|
using System;
|
|
|
|
|
|
|
|
using System.IO;
|
|
|
|
using System.IO;
|
|
|
|
using Emby.Server.Implementations.AppBase;
|
|
|
|
using Emby.Server.Implementations.AppBase;
|
|
|
|
using MediaBrowser.Controller;
|
|
|
|
using MediaBrowser.Controller;
|
|
|
@ -10,8 +9,6 @@ namespace Emby.Server.Implementations
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
|
public class ServerApplicationPaths : BaseApplicationPaths, IServerApplicationPaths
|
|
|
|
public class ServerApplicationPaths : BaseApplicationPaths, IServerApplicationPaths
|
|
|
|
{
|
|
|
|
{
|
|
|
|
private string _defaultTranscodePath;
|
|
|
|
|
|
|
|
private string _transcodePath;
|
|
|
|
|
|
|
|
private string _internalMetadataPath;
|
|
|
|
private string _internalMetadataPath;
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
@ -23,7 +20,8 @@ namespace Emby.Server.Implementations
|
|
|
|
string configurationDirectoryPath,
|
|
|
|
string configurationDirectoryPath,
|
|
|
|
string cacheDirectoryPath,
|
|
|
|
string cacheDirectoryPath,
|
|
|
|
string webDirectoryPath)
|
|
|
|
string webDirectoryPath)
|
|
|
|
: base(programDataPath,
|
|
|
|
: base(
|
|
|
|
|
|
|
|
programDataPath,
|
|
|
|
logDirectoryPath,
|
|
|
|
logDirectoryPath,
|
|
|
|
configurationDirectoryPath,
|
|
|
|
configurationDirectoryPath,
|
|
|
|
cacheDirectoryPath,
|
|
|
|
cacheDirectoryPath,
|
|
|
@ -31,8 +29,6 @@ namespace Emby.Server.Implementations
|
|
|
|
{
|
|
|
|
{
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public string ApplicationResourcesPath { get; } = AppContext.BaseDirectory;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
|
/// Gets the path to the base root media directory.
|
|
|
|
/// Gets the path to the base root media directory.
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
@ -45,18 +41,13 @@ namespace Emby.Server.Implementations
|
|
|
|
/// <value>The default user views path.</value>
|
|
|
|
/// <value>The default user views path.</value>
|
|
|
|
public string DefaultUserViewsPath => Path.Combine(RootFolderPath, "default");
|
|
|
|
public string DefaultUserViewsPath => Path.Combine(RootFolderPath, "default");
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
|
|
/// Gets the path to localization data.
|
|
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
|
|
/// <value>The localization path.</value>
|
|
|
|
|
|
|
|
public string LocalizationPath => Path.Combine(ProgramDataPath, "localization");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
|
/// Gets the path to the People directory.
|
|
|
|
/// Gets the path to the People directory.
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
|
/// <value>The people path.</value>
|
|
|
|
/// <value>The people path.</value>
|
|
|
|
public string PeoplePath => Path.Combine(InternalMetadataPath, "People");
|
|
|
|
public string PeoplePath => Path.Combine(InternalMetadataPath, "People");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <inheritdoc />
|
|
|
|
public string ArtistsPath => Path.Combine(InternalMetadataPath, "artists");
|
|
|
|
public string ArtistsPath => Path.Combine(InternalMetadataPath, "artists");
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
@ -107,12 +98,14 @@ namespace Emby.Server.Implementations
|
|
|
|
/// <value>The user configuration directory path.</value>
|
|
|
|
/// <value>The user configuration directory path.</value>
|
|
|
|
public string UserConfigurationDirectoryPath => Path.Combine(ConfigurationDirectoryPath, "users");
|
|
|
|
public string UserConfigurationDirectoryPath => Path.Combine(ConfigurationDirectoryPath, "users");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <inheritdoc />
|
|
|
|
public string InternalMetadataPath
|
|
|
|
public string InternalMetadataPath
|
|
|
|
{
|
|
|
|
{
|
|
|
|
get => _internalMetadataPath ?? (_internalMetadataPath = Path.Combine(DataPath, "metadata"));
|
|
|
|
get => _internalMetadataPath ?? (_internalMetadataPath = Path.Combine(DataPath, "metadata"));
|
|
|
|
set => _internalMetadataPath = value;
|
|
|
|
set => _internalMetadataPath = value;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <inheritdoc />
|
|
|
|
public string VirtualInternalMetadataPath { get; } = "%MetadataPath%";
|
|
|
|
public string VirtualInternalMetadataPath { get; } = "%MetadataPath%";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|