From 7caa20e114382642b69a944c3dafc60e3aee0382 Mon Sep 17 00:00:00 2001 From: Nikolaj Olsson Date: Mon, 16 Jan 2017 20:24:33 +0100 Subject: [PATCH] Fixed issue with importing "Unknown 53" format - darnn :) Fix #2160 --- Changelog.txt | 1 + libse/SubtitleFormats/UnknownSubtitle53.cs | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Changelog.txt b/Changelog.txt index dfec93975..2bcf4b6bd 100644 --- a/Changelog.txt +++ b/Changelog.txt @@ -16,6 +16,7 @@ * Fixed fast forward waveform scrolling with mouse wheel * Fix in "Fix common errors" regarding de-selected fixes - thx Tronar * Fix for MPC-HC 32-bit - thx ZoneX + * Fixed issue with importing "Unknown 53" format - darnn 3.5.1 (13th December 2016) diff --git a/libse/SubtitleFormats/UnknownSubtitle53.cs b/libse/SubtitleFormats/UnknownSubtitle53.cs index c27032022..59fa4fe1e 100644 --- a/libse/SubtitleFormats/UnknownSubtitle53.cs +++ b/libse/SubtitleFormats/UnknownSubtitle53.cs @@ -7,7 +7,7 @@ namespace Nikse.SubtitleEdit.Core.SubtitleFormats public class UnknownSubtitle53 : SubtitleFormat { - private static readonly Regex RegexTimeCodes = new Regex(@"^\d\d\:\d\d\:\d\d\:\d\d [^ ]+", RegexOptions.Compiled); + private static readonly Regex RegexTimeCodes = new Regex(@"^\d\d\:\d\d\:\d\d\:\d\d .+", RegexOptions.Compiled); public override string Extension { @@ -108,6 +108,7 @@ namespace Nikse.SubtitleEdit.Core.SubtitleFormats index++; } subtitle.RemoveEmptyLines(); + subtitle.Renumber(); } }