diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2017-02-20 15:50:58 -0500 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2017-02-20 15:50:58 -0500 |
| commit | 5d55b36487b25b2efaf6923a3c069f4b0b59a449 (patch) | |
| tree | dacf7607a28bf65a67004f65fdb1f1e33f3c075f /Emby.Server.Implementations/Dto | |
| parent | de3ca87a763506badcf1518ae288a5736605445c (diff) | |
make more classes portable
Diffstat (limited to 'Emby.Server.Implementations/Dto')
| -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 696be80ed2..4ee3df7f5e 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; |
