Commit Graph

20021 Commits

Author SHA1 Message Date
Nikolaj Olsson
228ec5b6d4 Work on #8534 2024-06-23 08:37:11 +02:00
Nikolaj Olsson
d7af38dda0 Work on #8534 2024-06-23 08:36:46 +02:00
Nikolaj Olsson
e519c6322a
Merge pull request #8557 from ivandrofly/settings-to
Split Settings to multiple files
2024-06-23 07:46:33 +02:00
Nikolaj Olsson
7603bdfda9
Merge pull request #8559 from ivandrofly/text-to-speech
Implement IDisposable pattern on HttpClient usage
2024-06-23 07:44:23 +02:00
Nikolaj Olsson
6711897f3a Add gen transparent video with subs - thx JeditPro :)
Work on  #8534
2024-06-22 22:36:03 +02:00
Nikolaj Olsson
de76224637 Use new output path - thx GrampaWildWilly :)
Fix #8555
2024-06-22 09:13:39 +02:00
Ivandro Jao
761493d24c Implement IDisposable pattern on HttpClient usage
The HttpClient instances are now wrapped in a using statement to properly dispose them after use. This practice prevents potential memory leaks and ensures that system resources are returned back to the system once the HttpClient instances are no longer needed, improving the system's overall efficiency and performance.

Signed-off-by: Ivandro Jao <ivandrofly@gmail.com>
2024-06-21 19:44:23 +01:00
Ivandro Jao
772dc8416b Refactor settings namespace in .NET project
The main change in this commit is relocating several settings related classes from `Nikse.SubtitleEdit.Core.Common` to a new namespace `Nikse.SubtitleEdit.Core.Settings`. This improves the project organization by grouping all settings-related functionality and data together, making it easier to find and maintain. This refactoring required updates across numerous files to import the new namespace.

Signed-off-by: Ivandro Jao <ivandrofly@gmail.com>
2024-06-21 09:10:47 +01:00
Ivandro Jao
40e4b004c1 Add new classes for settings
This commit adds new classes for settings including 'MultipleSearchAndReplaceGroup', 'MultipleSearchAndReplaceSetting', 'NetworkSettings', 'AssaStorageCategory', and 'GeneralSettings'. Each class represents different groups of settings. These classes will be utilized to manage the settings in a more organized way.

Signed-off-by: Ivandro Jao <ivandrofly@gmail.com>
2024-06-21 09:02:17 +01:00
Ivandro Jao
b915d491c7 Add debug-specific error message in AutoTranslate.cs
In a wrap catch of the AutoTranslate.cs file, a conditional directive was added to display different error messages for DEBUG and RELEASE modes. This ensures that detailed exception information is shown during debugging for better troubleshooting, while a more user-friendly message is used in the release build.

Signed-off-by: Ivandro Jao <ivandrofly@gmail.com>
2024-06-20 19:21:03 +01:00
Ivandro Jao
be16964b95 Remove unnecessary whitespace and dispose HttpClient
An unnecessary whitespace line was removed from the AutoTranslate.cs file to improve code readability. Additionally, the HttpClient in the AutoTranslate.Designer.cs file was disposed to free up system resources and prevent potential memory leaks.

Signed-off-by: Ivandro Jao <ivandrofly@gmail.com>
2024-06-20 19:17:05 +01:00
Ivandro Jao
1b6ec6d9f2 Refactor HttpClient handling in AutoTranslate
HttpClient is optimized, now a single instance is shared instead of creating new for each request. The 'ConfigureAwait' statements have been adjusted in the async calls to improve asynchronous handling. Reorganized the downloading of Ollama models which simplifies and increases program efficiency.

Signed-off-by: Ivandro Jao <ivandrofly@gmail.com>
2024-06-20 18:57:02 +01:00
Nikolaj Olsson
a9d737aff5 Add new Claude 3.5 Sonnet model - thx Flash :) 2024-06-20 19:45:05 +02:00
Ivandro Jao
a9b7da3dc1 Refactor model fetching in AutoTranslate.cs
The process for downloading Ollama Models has been refactored for brevity and clarity. A private async method, 'GetModelsAsync', was introduced by extracting code from 'DownloadOllamaModelsAsync'. This change enhances code readability and makes possible errors easier to trace.

Signed-off-by: Ivandro Jao <ivandrofly@gmail.com>
2024-06-20 18:42:33 +01:00
Nikolaj Olsson
8b5a7c1036
Merge pull request #8549 from ivandrofly/auto-translate
Refactor AutoTranslate code to use async/await
2024-06-20 17:41:58 +02:00
Ivandro Jao
c9e20b0aa9 Refactor AutoTranslate code to use async/await
Removed the BackgroundWorker in the `nikseComboBoxEngine_SelectedIndexChanged` method, replacing it with async/await for better readability and performance. Extracted a `DownloadOllamaModelsAsync` method to download models, which also replaced the synchronous approach in `UpdateLocalModelsToolStripMenuItem_Click`.

Signed-off-by: Ivandro Jao <ivandrofly@gmail.com>
2024-06-19 22:20:43 +01:00
Nikolaj Olsson
060e7c9e7d Only allow single line select in auto-translate - thx TobbyTravel :)
Fix  #8548
2024-06-19 19:30:19 +02:00
Nikolaj Olsson
2b7bffc396 Add Ollama to batch translate - thx TobbyTravel :)
Fix #8544
2024-06-18 19:29:31 +02:00
Nikolaj Olsson
c695ed7b35 Fix #8543 2024-06-18 19:28:34 +02:00
Nikolaj Olsson
6759e1fa5c
Merge pull request #8546 from hugok79/patch-124
Update pt-PT.xml
2024-06-18 10:34:16 +02:00
Nikolaj Olsson
08445eecf0
Merge pull request #8535 from diomed/main
Update hrv_OCRFixReplaceList.xml
2024-06-18 10:32:33 +02:00
Nikolaj Olsson
1176ddb067
Merge pull request #8536 from elfriob/main
Update Russian translation
2024-06-18 10:32:15 +02:00
Hugo Carvalho
5fb752fa0e
Update pt-PT.xml 2024-06-18 00:22:02 +01:00
Hugo Carvalho
fb5a8fd677
Update pt-PT.xml 2024-06-18 00:14:06 +01:00
elfriob
b609fa180e
Update Russian translation 2024-06-17 14:51:19 +00:00
May Kittens Devour Your Soul
41cc9bf4c7
Update hrv_OCRFixReplaceList.xml 2024-06-17 11:34:23 +02:00
Nikolaj Olsson
5b145ac748
Merge pull request #8528 from bovirus/main
Update Italian language
2024-06-16 12:42:12 +02:00
Nikolaj Olsson
1d8773d1b6 Update yt-dlp to 2024.05.27 2024-06-16 12:19:26 +02:00
Nikolaj Olsson
4cdd35e521 Update mpv to 2024-06-09 2024-06-16 12:19:04 +02:00
Nikolaj Olsson
d53d2728a3 Prompt for overwrite in "Multiple replace" export - thx redactedscribe :)
Fix #8516
2024-06-15 19:26:24 +02:00
Nikolaj Olsson
6b3feb8bc3
Merge pull request #8532 from nkh0472/patch-118
Update zh-Hans.xml
2024-06-15 18:13:59 +02:00
Nikolaj Olsson
8810ecd950 Fix crash in Vosk audio to text on selected lines - thx MediaExpres :)
Fix #8530
Fix crash when Vosk is not installed
2024-06-15 17:58:21 +02:00
nkh0472
f2084692d2
Update zh-Hans.xml
for commit 172900a247
2024-06-15 21:25:50 +08:00
Nikolaj Olsson
37d821130c Minor updates 2024-06-15 12:15:54 +02:00
bovirus
03353706a5
Update Italian language 2024-06-14 11:40:55 +02:00
Nikolaj Olsson
e879fb6ef3 Add actor for podcaster json to UI
Related to #8522
2024-06-13 19:33:55 +02:00
Nikolaj Olsson
172900a247 Add PodcastIndexer json - thx rjgout :)
Related to  #8522
2024-06-13 19:25:46 +02:00
Nikolaj Olsson
ceac0eee80
Merge pull request #8518 from ivandrofly/fix-common
Remove spell check functionality from FixCommonErrors
2024-06-13 18:56:05 +02:00
Nikolaj Olsson
955ba4deb2
Merge pull request #8523 from ivandrofly/dotnetsdk
Update csproj files to the new Project Sdk format
2024-06-13 18:52:46 +02:00
Ivandro Jao
252dbda6cf Update csproj files to simplify project structure
Simplified and cleaned up the structure of multiple csproj files. This includes removing unnecessary tags and attributes, and adopting the new Project Sdk format. This change should have no functional impact but makes the project files streamlined and easier to read.

Signed-off-by: Ivandro Jao <ivandrofly@gmail.com>
2024-06-12 14:07:19 +01:00
Ivandro Jao
4917de0c4b Remove spell check functionality from FixCommonErrors
The `IFixCallbacks` interface no longer inherits from `IDoSpell` as it is unnecessary. This is due to the removal of the `DoSpell` method and the associated Hunspell functionality in the `FixCommonErrors` class. This commit simplifies the code by removing unused or unnecessary pieces.

Signed-off-by: Ivandro Jao <ivandrofly@gmail.com>
2024-06-11 22:46:30 +01:00
Nikolaj Olsson
93367dd9d7 Add audio settings for TTS final video file 2024-06-09 08:57:23 +02:00
Nikolaj Olsson
ecafda8394 Validate prompt chars - thx nyck33 :)
Fix #8506
2024-06-09 08:04:15 +02:00
Nikolaj Olsson
6fa8220e0e Merge branch 'main' of https://github.com/SubtitleEdit/subtitleedit 2024-06-07 16:10:10 +02:00
Nikolaj Olsson
45be0a95e8 Update Finnish translation - thx Teijo S :) 2024-06-07 16:10:01 +02:00
Nikolaj Olsson
2ab22170f1
Merge pull request #8486 from MediaExpres/main
Took them all with F6 and I think now the 100% lines are translated to Romanian
2024-06-05 20:07:17 +02:00
Mihai Pavelescu
94a5b7cac0 Nope. Now they are 100% 2024-06-05 18:00:39 +03:00
Mihai Pavelescu
2f06ca1955 Took them all with F6 and I think now the 100% lines are translated to Romanian 2024-06-05 17:48:25 +03:00
Nikolaj Olsson
998ee5ca95 Minor refact 2024-06-05 07:35:48 +02:00
Nikolaj Olsson
7b75b154ef
Merge pull request #8349 from ivandrofly/start-with-upper
Refactor method to check string starts with lowercase letter
2024-06-05 07:18:14 +02:00