encapsulate path substitution

This commit is contained in:
Luke Pulverenti
2016-09-12 14:10:09 -04:00
parent e7124e1ec5
commit 151d88f20d
7 changed files with 54 additions and 18 deletions

View File

@@ -1040,12 +1040,7 @@ namespace MediaBrowser.XbmcMetadata.Savers
private static string GetPathToSave(string path, ILibraryManager libraryManager, IServerConfigurationManager config)
{
foreach (var map in config.Configuration.PathSubstitutions)
{
path = libraryManager.SubstitutePath(path, map.From, map.To);
}
return path;
return libraryManager.GetPathAfterNetworkSubstitution(path);
}
private static bool IsPersonType(PersonInfo person, string type)