Commit Graph

14452 Commits

Author SHA1 Message Date
Nikolaj Olsson
0062c42a16 Update dk/sv transkation 2024-04-30 21:30:35 +02:00
Nikolaj Olsson
b47f4b6f13 Work on #8266 2024-04-30 21:28:18 +02:00
Nikolaj Olsson
b35a83f100 Work on #8266 2024-04-30 21:27:03 +02:00
Nikolaj Olsson
2dddf56a61 Fix Azure voice refresh 2024-04-30 20:14:59 +02:00
Nikolaj Olsson
ca9fa80b4b
Merge pull request #8281 from ivandrofly/feature/generatevideowithhardsubs
Feature/generatevideowithhardsubs
2024-04-30 18:35:16 +02:00
Nikolaj Olsson
b34892e716 Try to fix #7859 2024-04-30 18:00:58 +02:00
Nikolaj Olsson
bff037fc8a Make auto-translate shortcut work in waveform - thx rRobis :)
Fix #8280
2024-04-30 16:43:18 +02:00
Nikolaj Olsson
32ec68ccb7 Merge branch 'main' of https://github.com/SubtitleEdit/subtitleedit 2024-04-30 16:24:17 +02:00
Nikolaj Olsson
28a52febdf Minor adjustment of bookmark icon x pos - thx rRobis :)
Fix #8277
2024-04-30 16:23:50 +02:00
Ivandro Jao
042dfa14e5 Add DimensionTest to test project
A new test class, DimensionTest, is created and added to the test project. This class specifically tests the functionality of the Dimension object's validity and equality methods, thus enhancing our suite of unit tests.

Signed-off-by: Ivandro Jao <ivandrofly@gmail.com>
2024-04-30 13:10:10 +01:00
Ivandro Jao
6323937c30 Refactor video dimension validation in GenerateVideoWithHardSubs
This commit refactors the validation of video dimensions in GenerateVideoWithHardSubs class. Instead of checking width and height separately, a new Dimension object is created and validated with IsValid(). This simplifies the code and improves readability.

Signed-off-by: Ivandro Jao <ivandrofly@gmail.com>
2024-04-30 12:41:32 +01:00
Ivandro Jao
93c9e9947a Refactor video and subtitle batch creation code
Code for creating and validating batch video and subtitle entities has been extracted into separate methods, improving the readability of the main method. These changes also include a rectification in the logic for handling invalid video dimensions.

Signed-off-by: Ivandro Jao <ivandrofly@gmail.com>
2024-04-30 12:35:53 +01:00
Ivandro Jao
3d24cdcbb6 Add Dimension struct to manage object sizes
The struct, Dimension which represents the dimensions of an object, is created. This contains basic properties for height and width, and methods for checking equality, validity and providing a string representation. The Dimension can later be used throughout the project for managing sizes of different objects.

Signed-off-by: Ivandro Jao <ivandrofly@gmail.com>
2024-04-30 12:35:42 +01:00
Ivandro Jao
3e1fabac30 Refactor FfmpegMediaInfo to use Dimension for dimensions
The properties VideoWidth and VideoHeight in FfmpegMediaInfo class have been replaced with a Dimension object. This modification leads to simpler and more readable code by encapsulating width and height information within the Dimension class. Any resolution information extracted is now directly assigned to the Dimension property.

Signed-off-by: Ivandro Jao <ivandrofly@gmail.com>
2024-04-30 12:35:28 +01:00
Ivandro Jao
f256b59691 Refactor subtitle file location code in FileUtil
This commit simplifies the subtitle file location code in FileUtil by removing unnecessary nested functions. It changes the way the search is done in known subtitle directories and handles the case if a video file is sent with a full path. This results in cleaner and more manageable code.

Signed-off-by: Ivandro Jao <ivandrofly@gmail.com>
2024-04-30 12:35:19 +01:00
niksedk
56205e4222 Merge branch 'main' of https://github.com/SubtitleEdit/subtitleedit 2024-04-30 07:00:30 +02:00
niksedk
fcaf2e938a Update Bulgarian translaltion - thx Калин :) 2024-04-30 07:00:24 +02:00
bovirus
eee7a8851a
Update Italian language 2024-04-29 20:51:47 +02:00
Nikolaj Olsson
03cef9b709 Add sort direction icon in "Batch convert" 2024-04-29 19:38:35 +02:00
Nikolaj Olsson
a72ebd04d5 Fix sort en gen video w hardsub 2024-04-29 18:22:47 +02:00
Ivandro Jao
82ac6dec92 Fix typo in code comment
A typo in the comment for the subtitle file location function was corrected. Previously, the comment read "try locate subtitle file for the input vide file", and now it reads "try to locate subtitle file for the input vide file". Other changes include removal of an unused variable "fileNameNoExt".

Signed-off-by: Ivandro Jao <ivandrofly@gmail.com>
2024-04-29 16:17:36 +01:00
Ivandro Jao
c3af5f22ca Refactor TryLocateSubtitleFile method parameters
The method TryLocateSubtitleFile in FileUtil.cs was refactored to receive the complete video file name, rather than just the file name without its extension. This change should enhance file locating accuracy as it now considers the file's full name, including its extension.

Signed-off-by: Ivandro Jao <ivandrofly@gmail.com>
2024-04-29 16:11:14 +01:00
Ivandro Jao
7a96e1c40a Add method to locate subtitle files for video
A method 'TryLocateSubtitleFile' was implemented in FileUtil. It attempts to locate matching subtitle files for video files in known directories. The method was integrated into 'AddInputFile' of 'GenerateVideoWithHardSubs' and simplifies the earlier implementation for finding subtitles. This change will make the process of matching video files to subtitles more efficient and cleaner.

Signed-off-by: Ivandro Jao <ivandrofly@gmail.com>
2024-04-29 16:09:24 +01:00
Nikolaj Olsson
f8db47dba6 Skip audio files - thx Leon :)
Work on #8272
2024-04-29 06:43:30 +02:00
Nikolaj Olsson
6947faeba2 Work on #8272 2024-04-29 06:35:25 +02:00
Nikolaj Olsson
2ffed9b2b9 Move video info to context menu - thx rRobis/Leon :)
Work on #8273
2024-04-29 06:17:12 +02:00
Nikolaj Olsson
f6399cf63e Work on #8257 2024-04-29 06:02:52 +02:00
Nikolaj Olsson
d6add13334 A few language fixes 2024-04-28 21:14:50 +02:00
Nikolaj Olsson
fd03b2e447 Update dk/sv translations 2024-04-28 21:10:46 +02:00
Nikolaj Olsson
965dc3554e Minor refact 2024-04-28 20:40:49 +02:00
Nikolaj Olsson
59ab0fca5b More work on #8257 2024-04-28 20:36:47 +02:00
Nikolaj Olsson
6a3ddce7dd Add video res to ffmpeg info 2024-04-28 19:09:20 +02:00
Nikolaj Olsson
0c28e8a0ec Add sort mark to join subs - thx Leon :)
Work on #8257
2024-04-28 19:09:03 +02:00
Nikolaj Olsson
443d88d195 Allow sort/move for "Add end time of prev" in "Join subtitles" - thx Leon :)
Work on  #8257
2024-04-28 18:33:49 +02:00
Nikolaj Olsson
2122a8dc30 Add some missing translations for tts 2024-04-28 17:25:29 +02:00
Nikolaj Olsson
156513f453 Add delete key action for "unknown words" in OCR - thx RedSoxFan04 :)
Fix #8227
2024-04-28 10:27:25 +02:00
nkh0472
b57d744e8c
Update zh-Hans.xml
for commit ecdcb7fe7e
2024-04-28 10:07:36 +08:00
Nikolaj Olsson
bc3f369e90 Do not auto-set assa style for existing ASSA files
Fix  #8249
2024-04-27 20:10:27 +02:00
Nikolaj Olsson
1946176eef Add new subtitle format - thx lererledd :)
Fix #8247
2024-04-27 19:48:20 +02:00
Nikolaj Olsson
1500ab3bb0 Fix crash in traslate - thx lambdacore12 :)
Fix #8263
2024-04-27 19:28:12 +02:00
Nikolaj Olsson
bb9b53a995
Merge pull request #8251 from ivandrofly/feature/listview-operators
Refactor list view item checking actions
2024-04-27 19:09:30 +02:00
Nikolaj Olsson
a19201b194
Merge pull request #8261 from bovirus/main
Update Itlian language
2024-04-27 19:07:41 +02:00
Nikolaj Olsson
0c6e8fb10f Add "refresh voices" context menu for Piper/ElevenLabs 2024-04-27 19:07:14 +02:00
bovirus
0143e60c24
Update Itlian language 2024-04-26 16:24:22 +02:00
Nikolaj Olsson
ecdcb7fe7e Add CPS option to modify selection - thx uckthis :)
Work on #8148
2024-04-26 06:53:15 +02:00
Nikolaj Olsson
c9ba8b7873 Merge branch 'main' of https://github.com/SubtitleEdit/subtitleedit 2024-04-24 18:27:27 +02:00
Nikolaj Olsson
9d39d1c9aa Add new format (LRC with ms) - thx eadmaster :)
Work on #8240
2024-04-24 18:27:21 +02:00
Ivandro Jao
3892288695 Refactor list view item checking actions
The list view item checking actions, such as "Select All" and "Invert Selection", have been refactored to their own methods (CheckAll, InvertCheck) to reduce repetition. These methods have been implemented in numerous forms across the code. This makes the codebase cleaner and more maintainable as the operations are abstracted out to separate methods.

Signed-off-by: Ivandro Jao <ivandrofly@gmail.com>
2024-04-24 11:02:26 +01:00
niksedk
88fa93fef8 Improve "Cancel" in batch burn-in - thx Leon :)
Fix  #8248
2024-04-24 07:34:58 +02:00
Nikolaj Olsson
452504a5cb Disable OK on tts is done 2024-04-23 07:13:48 +02:00