mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-20 15:55:25 +03:00
encapsulate path substitution
This commit is contained in:
@@ -1516,10 +1516,7 @@ namespace MediaBrowser.Server.Implementations.Dto
|
||||
|
||||
if (locationType == LocationType.FileSystem || locationType == LocationType.Offline)
|
||||
{
|
||||
foreach (var map in _config.Configuration.PathSubstitutions)
|
||||
{
|
||||
path = _libraryManager.SubstitutePath(path, map.From, map.To);
|
||||
}
|
||||
path = _libraryManager.GetPathAfterNetworkSubstitution(path);
|
||||
}
|
||||
|
||||
return path;
|
||||
|
||||
Reference in New Issue
Block a user