aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Api/ItemUpdateService.cs
diff options
context:
space:
mode:
authorLuke <luke.pulverenti@gmail.com>2016-10-13 17:19:50 -0400
committerGitHub <noreply@github.com>2016-10-13 17:19:50 -0400
commit3f438cdf7b991b77c9d80e07b71933240b726dc6 (patch)
treef43b53ae3da95d74d856e444e72898e4515ebe0c /MediaBrowser.Api/ItemUpdateService.cs
parent94ddbfd57f63cc484d232894bea1e2f183eaaf7e (diff)
parent1c169b5b407c662a8ac0aa0f10bd37ce72e62901 (diff)
Merge pull request #2232 from MediaBrowser/beta
Beta
Diffstat (limited to 'MediaBrowser.Api/ItemUpdateService.cs')
-rw-r--r--MediaBrowser.Api/ItemUpdateService.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/MediaBrowser.Api/ItemUpdateService.cs b/MediaBrowser.Api/ItemUpdateService.cs
index 687a21a46..16e8a434a 100644
--- a/MediaBrowser.Api/ItemUpdateService.cs
+++ b/MediaBrowser.Api/ItemUpdateService.cs
@@ -81,7 +81,7 @@ namespace MediaBrowser.Api
info.ContentTypeOptions = GetContentTypeOptions(true);
info.ContentType = configuredContentType;
- if (string.Equals(inheritedContentType, CollectionType.TvShows, StringComparison.OrdinalIgnoreCase))
+ if (string.IsNullOrWhiteSpace(inheritedContentType) || string.Equals(inheritedContentType, CollectionType.TvShows, StringComparison.OrdinalIgnoreCase))
{
info.ContentTypeOptions = info.ContentTypeOptions
.Where(i => string.IsNullOrWhiteSpace(i.Value) || string.Equals(i.Value, CollectionType.TvShows, StringComparison.OrdinalIgnoreCase))