2021-08-23 16:50:18 +02:00
|
|
|
|
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 metaStr, string encodingStr)
|
|
|
|
|
|
{
|
|
|
|
|
|
streamIndex = streamNum;
|
|
|
|
|
|
lang = metaStr.Trim().Replace("_", ".").Replace(" ", ".");
|
2024-09-03 22:08:38 +02:00
|
|
|
|
//langFriendly = CultureInfo.CurrentCulture.TextInfo.ToTitleCase(metaStr.Lower().Trim().Replace("_", ".").Replace(" ", "."));
|
2021-08-23 16:50:18 +02:00
|
|
|
|
encoding = encodingStr.Trim();
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|