diff --git a/Changelog.txt b/Changelog.txt index f61d7000d..7f23a9475 100644 --- a/Changelog.txt +++ b/Changelog.txt @@ -5,7 +5,7 @@ * Option for auto-gen waveform when opening video - thx jirih/Leon/OmrSi * IMPROVED: * Update Bulgarian translation - thx Калин - * Update Italian translation - thx NAMP/bovirus + * Update Italian translation - thx NAMP/bovirus * Update Brazil translation - thx Igor * Update Portuguese translation - thx hugok79 * Update Polish translation - thx admas @@ -18,6 +18,8 @@ * FIXED: * Fix for generating empty waveform for online videos - thx OmrSi * Fix for finding frame rate in some mp4 files - thx OmrSi + * Fix typo for middle/center in WebVTT properties form defaults - thx koitsu + * Fix issue with TTML 1.0 + favorite + ext change - thx OmrSi 3.6.4 (3rd December 2021) diff --git a/src/libse/Common/Utilities.cs b/src/libse/Common/Utilities.cs index 39d0442b4..507568268 100644 --- a/src/libse/Common/Utilities.cs +++ b/src/libse/Common/Utilities.cs @@ -66,9 +66,14 @@ namespace Nikse.SubtitleEdit.Core.Common public static SubtitleFormat GetSubtitleFormatByFriendlyName(string friendlyName) { + if (friendlyName.IndexOf('(') > 0) + { + friendlyName = friendlyName.Substring(0, friendlyName.IndexOf('(')).TrimEnd(); + } + foreach (var format in SubtitleFormat.AllSubtitleFormats) { - if (format.FriendlyName == friendlyName || format.Name == friendlyName) + if (format.Name == friendlyName) { return format; }