mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-24 01:34:45 +03:00
encapsulate path substitution
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user