This change removes an unnecessary newline at the end of src/ui/SubtitleEdit.csproj. This helps maintain consistency and cleanliness in the project file formatting.
Signed-off-by: Ivandro Jao <Ivandrofly@gmail.com>
Moved the build helpers target from LibSE.csproj to SubtitleEdit.csproj. This change ensures that the build helper scripts are invoked during the build process of the SubtitleEdit project, enhancing consistency and maintainability.
Signed-off-by: Ivandro Jao <Ivandrofly@gmail.com>
Deleted the BeforeClean target that was removing HunspellAssemblies from the output path. This target is no longer necessary and simplifies the build process.
Signed-off-by: Ivandro Jao <Ivandrofly@gmail.com>
The pre-compilation tasks referencing NHunspell and executing OS-specific scripts were removed from the project file. This cleanup streamlines the build process and removes dependencies on external scripts that are no longer necessary.
Signed-off-by: Ivandro Jao <Ivandrofly@gmail.com>
Corrected the input filename variable from srtFileName to vttFileName to ensure the correct subtitle format is processed. This fixes potential misloading issues when handling WebVTT files.
Signed-off-by: Ivandro Jao <Ivandrofly@gmail.com>
Simplify the logic by reordering logging updates and transcript checks. This removes redundant `UpdateLog` and `SeLogger.WhisperInfo` calls, streamlining the flow and maintaining the existing functionality.
Signed-off-by: Ivandro Jao <Ivandrofly@gmail.com>
Corrected the misspelled variable name across both Main.cs and ImportUnknownFormat.cs files. Ensured consistent and accurate reference to 'ImportedSubtitle' for better code readability and functionality.
Signed-off-by: Ivandro Jao <Ivandrofly@gmail.com>
Replaced direct frame rate based conversions with reusable utility methods across multiple subtitle formats. This improves consistency, readability, and maintainability of the codebase.
Signed-off-by: Ivandro Jao <Ivandrofly@gmail.com>
Replaced the unused variable 'res' with a discard operator in the PartialResult call to enhance code clarity and maintainability by explicitly indicating the result is not used.
Signed-off-by: Ivandro Jao <Ivandrofly@gmail.com>
Encapsulate VoskRecognizer instantiation within a using statement to guarantee resource disposal. This change improves memory management and aligns with best practices for resource handling. Also, maintain the existing logic structure for audio file processing.
Signed-off-by: Ivandro Jao <Ivandrofly@gmail.com>
Moved the method `IsDirectoryWritable` from `WhisperAudioToText` to `FileUtil` for better code reuse and maintainability. Adjusted references in `WhisperAudioToText` and `VoskAudioToText` accordingly.
Signed-off-by: Ivandro Jao <Ivandrofly@gmail.com>