mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-23 11:42:36 +01:00
Hide empty image subs
This commit is contained in:
parent
d0a6a95952
commit
60f4e3e88b
@ -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))
|
||||
{
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user