diff options
Diffstat (limited to 'MediaBrowser.Server.Implementations/ServerApplicationPaths.cs')
| -rw-r--r-- | MediaBrowser.Server.Implementations/ServerApplicationPaths.cs | 33 |
1 files changed, 4 insertions, 29 deletions
diff --git a/MediaBrowser.Server.Implementations/ServerApplicationPaths.cs b/MediaBrowser.Server.Implementations/ServerApplicationPaths.cs index df2a5f83c..d9973afe7 100644 --- a/MediaBrowser.Server.Implementations/ServerApplicationPaths.cs +++ b/MediaBrowser.Server.Implementations/ServerApplicationPaths.cs @@ -1,6 +1,5 @@ using MediaBrowser.Common.Implementations; using MediaBrowser.Controller; -using System; using System.IO; namespace MediaBrowser.Server.Implementations @@ -10,33 +9,17 @@ namespace MediaBrowser.Server.Implementations /// </summary> public class ServerApplicationPaths : BaseApplicationPaths, IServerApplicationPaths { -#if (DEBUG) - /// <summary> - /// Initializes a new instance of the <see cref="ServerApplicationPaths" /> class. - /// </summary> - public ServerApplicationPaths(string applicationPath) - : base(true, applicationPath) - { - } -#else -/// <summary> -/// Initializes a new instance of the <see cref="ServerApplicationPaths"/> class. -/// </summary> - public ServerApplicationPaths(string applicationPath) - : base(false, applicationPath) - { - } -#endif - /// <summary> /// Initializes a new instance of the <see cref="BaseApplicationPaths" /> class. /// </summary> - public ServerApplicationPaths(string programDataPath, string applicationPath) + public ServerApplicationPaths(string programDataPath, string applicationPath, string applicationResourcesPath) : base(programDataPath, applicationPath) { - + ApplicationResourcesPath = applicationResourcesPath; } + public string ApplicationResourcesPath { get; private set; } + /// <summary> /// Gets the path to the base root media directory /// </summary> @@ -251,13 +234,5 @@ namespace MediaBrowser.Server.Implementations _internalMetadataPath = value; } } - - - public string GetInternalMetadataPath(Guid id) - { - var idString = id.ToString("N"); - - return Path.Combine(InternalMetadataPath, idString.Substring(0, 2), idString); - } } } |
