mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-03-13 21:56:20 +00: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;
|
||||
|
||||
@@ -506,6 +506,8 @@ namespace MediaBrowser.Controller.Library
|
||||
/// <returns>QueryResult<BaseItem>.</returns>
|
||||
QueryResult<BaseItem> QueryItems(InternalItemsQuery query);
|
||||
|
||||
string GetPathAfterNetworkSubstitution(string path);
|
||||
|
||||
/// <summary>
|
||||
/// Substitutes the path.
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user