Hide empty image subs

This commit is contained in:
Nikolaj Olsson 2019-11-01 05:27:07 +01:00
parent d0a6a95952
commit 60f4e3e88b
2 changed files with 7 additions and 7 deletions

View File

@ -456,7 +456,7 @@ namespace Nikse.SubtitleEdit.Core.TransportStream
sb.AppendLine("page: " + pageNumberInt);
teletextRunSettings.PageNumber = pageNumberInt;
teletextRunSettings.PageNumberBcd = bcdPage;
if (pageNumberInt == 888) // 398)
if (pageNumberInt == 398) //TODO: Not hardcoded... possible to find all pages in one run?
{
if (!teletextRunSettings.PageNumbersInt.Contains(pageNumberInt))
{

View File

@ -201,8 +201,6 @@ namespace Nikse.SubtitleEdit.Core.TransportStream
}
}
var i333 = Teletext.config.Count;
if (IsM2TransportStream)
{
DvbSubtitlesLookup = new SortedDictionary<int, List<TransportStreamSubtitle>>();
@ -233,16 +231,18 @@ namespace Nikse.SubtitleEdit.Core.TransportStream
currentList.Clear();
}
}
SubtitlesLookup.Add(pid, list);
DvbSubtitlesLookup.Add(pid, subList);
if (subList.Count > 0)
{
SubtitlesLookup.Add(pid, list);
DvbSubtitlesLookup.Add(pid, subList);
}
}
SubtitlePacketIds.Clear();
foreach (int key in DvbSubtitlesLookup.Keys)
{
SubtitlePacketIds.Add(key);
}
SubtitlePacketIds.Sort();
return;
}