mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-19 07:23:05 +03:00
encapsulate path substitution
This commit is contained in:
@@ -2111,10 +2111,7 @@ namespace MediaBrowser.Controller.Entities
|
||||
{
|
||||
if (locationType == LocationType.FileSystem || locationType == LocationType.Offline)
|
||||
{
|
||||
foreach (var map in ConfigurationManager.Configuration.PathSubstitutions)
|
||||
{
|
||||
path = LibraryManager.SubstitutePath(path, map.From, map.To);
|
||||
}
|
||||
return LibraryManager.GetPathAfterNetworkSubstitution(path);
|
||||
}
|
||||
|
||||
return path;
|
||||
|
||||
Reference in New Issue
Block a user