From 4b0f055a16ae558f9c02daae7c76aca1df358e07 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Sun, 9 Jun 2013 11:49:32 -0400 Subject: [PATCH] added EnableInternetProviders to BaseItemDto --- MediaBrowser.Controller/Dto/DtoBuilder.cs | 3 ++- MediaBrowser.Model/DTO/BaseItemDto.cs | 8 +++++++- MediaBrowser.Model/Querying/ItemFields.cs | 4 ++-- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/MediaBrowser.Controller/Dto/DtoBuilder.cs b/MediaBrowser.Controller/Dto/DtoBuilder.cs index 200659d9c..981c2e5b4 100644 --- a/MediaBrowser.Controller/Dto/DtoBuilder.cs +++ b/MediaBrowser.Controller/Dto/DtoBuilder.cs @@ -233,10 +233,11 @@ namespace MediaBrowser.Controller.Dto dto.DisplayMediaType = item.DisplayMediaType; } - if (fields.Contains(ItemFields.LockedFields)) + if (fields.Contains(ItemFields.MetadataSettings)) { dto.LockedFields = item.LockedFields; dto.LockedImages = item.LockedImages; + dto.EnableInternetProviders = !item.DontFetchMeta; } if (fields.Contains(ItemFields.Budget)) diff --git a/MediaBrowser.Model/DTO/BaseItemDto.cs b/MediaBrowser.Model/DTO/BaseItemDto.cs index 9326bd490..593f1273d 100644 --- a/MediaBrowser.Model/DTO/BaseItemDto.cs +++ b/MediaBrowser.Model/DTO/BaseItemDto.cs @@ -469,7 +469,13 @@ namespace MediaBrowser.Model.Dto /// /// The locked images. public List LockedImages { get; set; } - + + /// + /// Gets or sets a value indicating whether [enable internet providers]. + /// + /// true if [enable internet providers]; otherwise, false. + public bool? EnableInternetProviders { get; set; } + /// /// Gets a value indicating whether this instance can resume. /// diff --git a/MediaBrowser.Model/Querying/ItemFields.cs b/MediaBrowser.Model/Querying/ItemFields.cs index 86a41b471..d99695f26 100644 --- a/MediaBrowser.Model/Querying/ItemFields.cs +++ b/MediaBrowser.Model/Querying/ItemFields.cs @@ -67,9 +67,9 @@ namespace MediaBrowser.Model.Querying IndexOptions, /// - /// The locked fields + /// The metadata settings /// - LockedFields, + MetadataSettings, /// /// The item overview