mirror of
https://github.com/n00mkrad/flowframes.git
synced 2025-12-24 04:09:29 +01:00
Split into legacy (Framework 4.8) and .NET 8 projects, WIP .NET 8 fixes
This commit is contained in:
26
Flowframes/Data/Streams/SubtitleStream.cs
Normal file
26
Flowframes/Data/Streams/SubtitleStream.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
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()}";
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user