mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-22 03:02:35 +01:00
Auto-load audio files - thx Leon :)
This commit is contained in:
parent
021705df24
commit
6d1949a846
@ -48,6 +48,7 @@
|
||||
* Update Tesseract 5 alpha 2021-08-11 to RC1 2021-10-30
|
||||
* Prefer FFmpeg over VLC for extracting audio - thx Jamakmake
|
||||
* Include favorite formats in "reset"
|
||||
* Auto-load audio files - thx Leon
|
||||
* FIXED:
|
||||
* Fix tag style converting from/to ASSA - thx von Suppé
|
||||
* Fix "Title bar text" when translating - thx Andrebavila
|
||||
|
@ -20735,6 +20735,19 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
}
|
||||
}
|
||||
|
||||
if (movieFileName == null)
|
||||
{
|
||||
foreach (var extension in Utilities.AudioFileExtensions)
|
||||
{
|
||||
var fileName = fileNameNoExtension + extension;
|
||||
if (File.Exists(fileName))
|
||||
{
|
||||
movieFileName = fileName;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (movieFileName != null)
|
||||
{
|
||||
OpenVideo(movieFileName);
|
||||
@ -31756,7 +31769,7 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
}
|
||||
|
||||
RestoreSubtitleListviewIndices();
|
||||
|
||||
|
||||
SetTitle();
|
||||
SetEncoding(Encoding.UTF8);
|
||||
if (!isOriginalVisible)
|
||||
|
Loading…
Reference in New Issue
Block a user