mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
remove generic video excludes
This commit is contained in:
parent
f96b4083a0
commit
baf5e0c18b
@ -54,15 +54,6 @@ namespace MediaBrowser.LocalMetadata.Savers
|
|||||||
// Check parent for null to avoid running this against things like video backdrops
|
// Check parent for null to avoid running this against things like video backdrops
|
||||||
if (video != null && !(item is Episode) && !video.IsOwnedItem)
|
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;
|
return updateType >= ItemUpdateType.MetadataDownload;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -129,14 +129,6 @@ namespace MediaBrowser.Providers.MediaInfo
|
|||||||
if (item.LocationType == LocationType.FileSystem && video != null && !video.IsPlaceHolder &&
|
if (item.LocationType == LocationType.FileSystem && video != null && !video.IsPlaceHolder &&
|
||||||
!video.IsShortcut && !video.IsArchive)
|
!video.IsShortcut && !video.IsArchive)
|
||||||
{
|
{
|
||||||
if (video.GetType() == typeof(Video))
|
|
||||||
{
|
|
||||||
if (string.IsNullOrEmpty(_libraryManager.GetContentType(video)))
|
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -7,7 +7,6 @@ using MediaBrowser.Controller.Library;
|
|||||||
using MediaBrowser.Model.Entities;
|
using MediaBrowser.Model.Entities;
|
||||||
using MediaBrowser.Model.Logging;
|
using MediaBrowser.Model.Logging;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Globalization;
|
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Xml;
|
using System.Xml;
|
||||||
|
|
||||||
@ -55,14 +54,6 @@ namespace MediaBrowser.XbmcMetadata.Savers
|
|||||||
// Check parent for null to avoid running this against things like video backdrops
|
// Check parent for null to avoid running this against things like video backdrops
|
||||||
if (video != null && !(item is Episode) && !video.IsOwnedItem)
|
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;
|
return updateType >= MinimumUpdateType;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user