aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Controller/Entities/Video.cs
diff options
context:
space:
mode:
authorLuke <luke.pulverenti@gmail.com>2017-07-10 03:38:15 -0400
committerGitHub <noreply@github.com>2017-07-10 03:38:15 -0400
commit5199fea8e6b16e694e5b2cf8ebdad1c87eecf4ca (patch)
tree8a2c5c2bbdf5455aa304300baf6042b4c4d78bc5 /MediaBrowser.Controller/Entities/Video.cs
parent140594882e03bbd8c949ae68414ad19baaeba407 (diff)
parent07ab6a19e25b722513cf4731427ca04a08c6cb86 (diff)
Merge pull request #2750 from MediaBrowser/dev
Dev
Diffstat (limited to 'MediaBrowser.Controller/Entities/Video.cs')
-rw-r--r--MediaBrowser.Controller/Entities/Video.cs16
1 files changed, 16 insertions, 0 deletions
diff --git a/MediaBrowser.Controller/Entities/Video.cs b/MediaBrowser.Controller/Entities/Video.cs
index 7978f4761..c5d9b9203 100644
--- a/MediaBrowser.Controller/Entities/Video.cs
+++ b/MediaBrowser.Controller/Entities/Video.cs
@@ -57,6 +57,22 @@ namespace MediaBrowser.Controller.Entities
{
get
{
+ var extraType = ExtraType;
+ if (extraType.HasValue)
+ {
+ if (extraType.Value == Model.Entities.ExtraType.Sample)
+ {
+ return false;
+ }
+ if (extraType.Value == Model.Entities.ExtraType.ThemeVideo)
+ {
+ return false;
+ }
+ if (extraType.Value == Model.Entities.ExtraType.Trailer)
+ {
+ return false;
+ }
+ }
return true;
}
}