aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Implementations/Library
diff options
context:
space:
mode:
authorLuke <luke.pulverenti@gmail.com>2016-09-12 14:23:41 -0400
committerGitHub <noreply@github.com>2016-09-12 14:23:41 -0400
commit480b9c323ac7c4b4c70f60b1ddc1677d6f233fcd (patch)
tree76a0869402b108e01f7365a0a08acf8e5c1837ce /MediaBrowser.Server.Implementations/Library
parent05cd512e81d5c558bd0c4e41aca24d67cc976b09 (diff)
parent151d88f20db2d6fbb8ea901d84d25d26ccbb136c (diff)
Merge pull request #2161 from MediaBrowser/dev
Dev
Diffstat (limited to 'MediaBrowser.Server.Implementations/Library')
-rw-r--r--MediaBrowser.Server.Implementations/Library/LibraryManager.cs10
1 files changed, 10 insertions, 0 deletions
diff --git a/MediaBrowser.Server.Implementations/Library/LibraryManager.cs b/MediaBrowser.Server.Implementations/Library/LibraryManager.cs
index 442e2ebe5..bd408c9d3 100644
--- a/MediaBrowser.Server.Implementations/Library/LibraryManager.cs
+++ b/MediaBrowser.Server.Implementations/Library/LibraryManager.cs
@@ -2527,6 +2527,16 @@ namespace MediaBrowser.Server.Implementations.Library
}).OrderBy(i => i.Path).ToList();
}
+ public string GetPathAfterNetworkSubstitution(string path)
+ {
+ foreach (var map in ConfigurationManager.Configuration.PathSubstitutions)
+ {
+ path = SubstitutePath(path, map.From, map.To);
+ }
+
+ return path;
+ }
+
public string SubstitutePath(string path, string from, string to)
{
if (string.IsNullOrWhiteSpace(path))