Version bump and fix default actions if translating to english

This commit is contained in:
McCloudS
2025-01-07 19:23:48 -07:00
committed by GitHub
parent 3571cfa04d
commit ca97952698

View File

@@ -1,4 +1,4 @@
subgen_version = '2024.12.11'
subgen_version = '2025.01.01'
from language_code import LanguageCode
from datetime import datetime
@@ -1001,7 +1001,11 @@ def gen_subtitles_queue(file_path: str, transcription_type: str, force_language:
logging.debug(f"{file_path} doesn't have any audio to transcribe!")
return
force_language = choose_transcribe_language(file_path, force_language)
if transcription_type == 'translate':
force_language = LanguageCode.from_string('eng')
# if we are translating, then we must do it to english only
else:
force_language = choose_transcribe_language(file_path, force_language)
# check if we would like to detect audio language in case of no audio language specified. Will return here again with specified language from whisper
if not force_language and should_whiser_detect_audio_language: