mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-03-27 04:22:08 +00:00
update file system methods
This commit is contained in:
@@ -516,55 +516,25 @@ namespace MediaBrowser.Server.Implementations.Sync
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!item.RunTimeTicks.HasValue)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
var video = item as Video;
|
||||
if (video != null)
|
||||
{
|
||||
if (video.VideoType == VideoType.Iso || video.VideoType == VideoType.HdDvd)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
if (video.IsPlaceHolder)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
if (video.IsArchive)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
if (video.IsShortcut)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
var game = item as Game;
|
||||
if (game != null)
|
||||
{
|
||||
if (game.IsMultiPart)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
if (item is LiveTvChannel || item is IChannelItem)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
// It would be nice to support these later
|
||||
if (item is Game || item is Book)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user