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(" ", ".");
|
2022-10-14 09:00:47 +02:00
|
|
|
|
//langFriendly = CultureInfo.CurrentCulture.TextInfo.ToTitleCase(metaStr.ToLowerInvariant().Trim().Replace("_", ".").Replace(" ", "."));
|
2021-08-23 16:50:18 +02:00
|
|
|
|
encoding = encodingStr.Trim();
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|