mirror of
https://github.com/n00mkrad/flowframes.git
synced 2025-12-18 01:17:47 +01:00
27 lines
841 B
C#
27 lines
841 B
C#
using Flowframes.Extensions;
|
|
|
|
namespace Flowframes.Data.Streams
|
|
{
|
|
public class SubtitleStream : Stream
|
|
{
|
|
public bool Bitmap { get; }
|
|
|
|
public SubtitleStream(string language, string title, string codec, string codecLong, bool bitmap)
|
|
{
|
|
base.Type = StreamType.Subtitle;
|
|
Language = language;
|
|
Title = title;
|
|
Codec = codec;
|
|
CodecLong = codecLong;
|
|
Bitmap = bitmap;
|
|
}
|
|
|
|
public override string ToString()
|
|
{
|
|
string lang = string.IsNullOrWhiteSpace(Language.Trim()) ? "?" : Language;
|
|
string ttl = string.IsNullOrWhiteSpace(Title.Trim()) ? "None" : Title;
|
|
return $"{base.ToString()} - Language: {lang} - Title: {ttl} - Bitmap-based: {Bitmap.ToString().ToTitleCase()}";
|
|
}
|
|
}
|
|
}
|