aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Api/ItemUpdateService.cs
diff options
context:
space:
mode:
authorLuke <luke.pulverenti@gmail.com>2016-10-13 14:44:51 -0400
committerGitHub <noreply@github.com>2016-10-13 14:44:51 -0400
commit61030bb1093f77f4ca7a742291179351acbc5e92 (patch)
treef41ba213b4774e7b492421499a6f366c067f5f19 /MediaBrowser.Api/ItemUpdateService.cs
parent2ef130260c8e4684865e7c95f5cd0a075397ade0 (diff)
parentb9c430059a3097387ea925a3f5588c3042bb2464 (diff)
Merge pull request #2230 from MediaBrowser/dev
fix playlist deletion
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))