aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Model/Entities/MediaStream.cs
diff options
context:
space:
mode:
Diffstat (limited to 'MediaBrowser.Model/Entities/MediaStream.cs')
-rw-r--r--MediaBrowser.Model/Entities/MediaStream.cs9
1 files changed, 5 insertions, 4 deletions
diff --git a/MediaBrowser.Model/Entities/MediaStream.cs b/MediaBrowser.Model/Entities/MediaStream.cs
index 4de183bf9..838095832 100644
--- a/MediaBrowser.Model/Entities/MediaStream.cs
+++ b/MediaBrowser.Model/Entities/MediaStream.cs
@@ -130,19 +130,20 @@ namespace MediaBrowser.Model.Entities
/// <value><c>true</c> if this instance is external; otherwise, <c>false</c>.</value>
public bool IsExternal { get; set; }
- public bool IsGraphicalSubtitleStream
+ public bool IsTextSubtitleStream
{
get
{
- if (IsExternal) return false;
+ if (Type != MediaStreamType.Subtitle) return false;
var codec = Codec ?? string.Empty;
- return StringHelper.IndexOfIgnoreCase(codec, "pgs") != -1 ||
- StringHelper.IndexOfIgnoreCase(codec, "dvd") != -1;
+ return StringHelper.IndexOfIgnoreCase(codec, "pgs") == -1 &&
+ StringHelper.IndexOfIgnoreCase(codec, "dvd") == -1;
}
}
+
/// <summary>
/// Gets or sets the filename.
/// </summary>