Commit Graph

20110 Commits

Author SHA1 Message Date
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
Nikolaj Olsson
8910a92568
Merge pull request #8353 from ivandrofly/feature/htmlutil-fix-italic
Refactor tag replacement in HtmlUtil
2024-06-05 07:13:48 +02:00
Nikolaj Olsson
e963cfdd12
Merge pull request #8397 from ivandrofly/feature/report-progress
Refactor progress report in WhisperModelDownload
2024-06-05 07:10:09 +02:00
Nikolaj Olsson
24de4b2e5a
Merge pull request #8416 from ivandrofly/feature/se-listview-dispose
Add Dispose method to SubtitleListView control
2024-06-05 07:03:06 +02:00
Nikolaj Olsson
e818a24c94
Merge pull request #8464 from ivandrofly/feature/settings
Remove unused variable in Settings.cs
2024-06-05 06:57:16 +02:00
Nikolaj Olsson
bb8a7d0bc8
Merge pull request #8472 from MediaExpres/main
added new Romanian missing translations
2024-06-05 06:56:48 +02:00
Nikolaj Olsson
a5cd4af419
Merge pull request #8478 from bovirus/main
Update Italian language
2024-06-05 06:55:18 +02:00
Nikolaj Olsson
78a978d7e1 Fix theme issues with regex context menu 2024-06-05 06:40:56 +02:00
Mihai Pavelescu
94b1b4e158
Merge branch 'SubtitleEdit:main' into main 2024-06-04 22:58:42 +03:00
bovirus
4acc7e69f0
Update Italian language 2024-06-04 21:05:36 +02:00
Nikolaj Olsson
52496910a2
Merge pull request #8467 from diomed/main
Update hrv_OCRFixReplaceList.xml
2024-06-04 21:01:56 +02:00
Nikolaj Olsson
7a891f4a7f
Merge pull request #8477 from hugok79/patch-123
Update pt-PT.xml
2024-06-04 20:59:29 +02:00