mirror of
https://github.com/n00mkrad/flowframes.git
synced 2025-12-24 04:09:29 +01:00
21 lines
580 B
C#
21 lines
580 B
C#
using System.Globalization;
|
|
|
|
namespace Flowframes.Data
|
|
{
|
|
class SubtitleTrack
|
|
{
|
|
public int streamIndex;
|
|
public string lang;
|
|
public string langFriendly;
|
|
public string encoding;
|
|
|
|
public SubtitleTrack(int streamNum, string langStr, string encodingStr)
|
|
{
|
|
streamIndex = streamNum;
|
|
lang = langStr.Trim().Replace(" ", ".");
|
|
langFriendly = CultureInfo.CurrentCulture.TextInfo.ToTitleCase(langStr.ToLower().Trim().Replace(" ", "."));
|
|
encoding = encodingStr.Trim();
|
|
}
|
|
}
|
|
}
|