diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-12-21 00:57:06 -0500 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-12-21 00:57:06 -0500 |
| commit | e5e39e8e56de7c4d6f0cadad579e9b20513f096d (patch) | |
| tree | 8327d619f75bc19cb6f9cc72619221c3d998b57c /MediaBrowser.Server.Implementations | |
| parent | 7b0306dce771abbe141e178330f2566bc0e21be6 (diff) | |
add metadata editor info endpoint
Diffstat (limited to 'MediaBrowser.Server.Implementations')
| -rw-r--r-- | MediaBrowser.Server.Implementations/Dto/DtoService.cs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/MediaBrowser.Server.Implementations/Dto/DtoService.cs b/MediaBrowser.Server.Implementations/Dto/DtoService.cs index bbf1d8e3ad..a14a8ad08f 100644 --- a/MediaBrowser.Server.Implementations/Dto/DtoService.cs +++ b/MediaBrowser.Server.Implementations/Dto/DtoService.cs @@ -71,8 +71,7 @@ namespace MediaBrowser.Server.Implementations.Dto { var options = new DtoOptions { - Fields = fields, - EnableSettings = true + Fields = fields }; // Get everything @@ -677,7 +676,7 @@ namespace MediaBrowser.Server.Implementations.Dto dto.IsUnidentified = item.IsUnidentified; } - if (options.EnableSettings) + if (fields.Contains(ItemFields.Settings)) { dto.LockedFields = item.LockedFields; dto.LockData = item.IsLocked; @@ -1170,7 +1169,7 @@ namespace MediaBrowser.Server.Implementations.Dto dto.SeasonCount = series.SeasonCount; - if (options.EnableSettings) + if (fields.Contains(ItemFields.Settings)) { dto.DisplaySpecialsWithSeasons = series.DisplaySpecialsWithSeasons; } |
