diff options
Diffstat (limited to 'Emby.Server.Implementations/Dto/DtoService.cs')
| -rw-r--r-- | Emby.Server.Implementations/Dto/DtoService.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Emby.Server.Implementations/Dto/DtoService.cs b/Emby.Server.Implementations/Dto/DtoService.cs index 696be80ed..4ee3df7f5 100644 --- a/Emby.Server.Implementations/Dto/DtoService.cs +++ b/Emby.Server.Implementations/Dto/DtoService.cs @@ -1031,7 +1031,7 @@ namespace Emby.Server.Implementations.Dto if (fields.Contains(ItemFields.Path)) { - dto.Path = GetMappedPath(item); + dto.Path = GetMappedPath(item, owner); } dto.PremiereDate = item.PremiereDate; @@ -1566,7 +1566,7 @@ namespace Emby.Server.Implementations.Dto } } - private string GetMappedPath(BaseItem item) + private string GetMappedPath(BaseItem item, BaseItem ownerItem) { var path = item.Path; @@ -1574,7 +1574,7 @@ namespace Emby.Server.Implementations.Dto if (locationType == LocationType.FileSystem || locationType == LocationType.Offline) { - path = _libraryManager.GetPathAfterNetworkSubstitution(path, item); + path = _libraryManager.GetPathAfterNetworkSubstitution(path, ownerItem ?? item); } return path; |
