From baf5e0c18b9c3daf168bd4f39b167e059ce47736 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Thu, 8 Jan 2015 22:27:44 -0500 Subject: [PATCH] remove generic video excludes --- MediaBrowser.LocalMetadata/Savers/MovieXmlSaver.cs | 9 --------- MediaBrowser.Providers/MediaInfo/VideoImageProvider.cs | 8 -------- MediaBrowser.XbmcMetadata/Savers/MovieNfoSaver.cs | 9 --------- 3 files changed, 26 deletions(-) diff --git a/MediaBrowser.LocalMetadata/Savers/MovieXmlSaver.cs b/MediaBrowser.LocalMetadata/Savers/MovieXmlSaver.cs index cad08e6383..eb1a0b78c6 100644 --- a/MediaBrowser.LocalMetadata/Savers/MovieXmlSaver.cs +++ b/MediaBrowser.LocalMetadata/Savers/MovieXmlSaver.cs @@ -54,15 +54,6 @@ namespace MediaBrowser.LocalMetadata.Savers // Check parent for null to avoid running this against things like video backdrops if (video != null && !(item is Episode) && !video.IsOwnedItem) { - // If it's a plain video, skip if content type is unset (unless editing) - if (video.GetType() == typeof(Video)) - { - if (updateType < ItemUpdateType.MetadataEdit && string.IsNullOrEmpty(_libraryManager.GetContentType(video))) - { - return false; - } - } - return updateType >= ItemUpdateType.MetadataDownload; } diff --git a/MediaBrowser.Providers/MediaInfo/VideoImageProvider.cs b/MediaBrowser.Providers/MediaInfo/VideoImageProvider.cs index 59db382ead..7c32432251 100644 --- a/MediaBrowser.Providers/MediaInfo/VideoImageProvider.cs +++ b/MediaBrowser.Providers/MediaInfo/VideoImageProvider.cs @@ -129,14 +129,6 @@ namespace MediaBrowser.Providers.MediaInfo if (item.LocationType == LocationType.FileSystem && video != null && !video.IsPlaceHolder && !video.IsShortcut && !video.IsArchive) { - if (video.GetType() == typeof(Video)) - { - if (string.IsNullOrEmpty(_libraryManager.GetContentType(video))) - { - return false; - } - } - return true; } diff --git a/MediaBrowser.XbmcMetadata/Savers/MovieNfoSaver.cs b/MediaBrowser.XbmcMetadata/Savers/MovieNfoSaver.cs index d049843f35..e67aa42c75 100644 --- a/MediaBrowser.XbmcMetadata/Savers/MovieNfoSaver.cs +++ b/MediaBrowser.XbmcMetadata/Savers/MovieNfoSaver.cs @@ -7,7 +7,6 @@ using MediaBrowser.Controller.Library; using MediaBrowser.Model.Entities; using MediaBrowser.Model.Logging; using System.Collections.Generic; -using System.Globalization; using System.IO; using System.Xml; @@ -55,14 +54,6 @@ namespace MediaBrowser.XbmcMetadata.Savers // Check parent for null to avoid running this against things like video backdrops if (video != null && !(item is Episode) && !video.IsOwnedItem) { - // If it's a plain video, skip if content type is unset (unless editing) - if (video.GetType() == typeof (Video)) - { - if (updateType < ItemUpdateType.MetadataEdit && string.IsNullOrEmpty(LibraryManager.GetContentType(video))) - { - return false; - } - } return updateType >= MinimumUpdateType; }