Better implementation of auto-translate captions

This commit is contained in:
jeffser 2024-10-17 00:18:18 -06:00
parent f50c98befc
commit 7c4c1e0997

View File

@ -758,8 +758,8 @@ Generate a title following these rules:
self.show_toast(_("This video does not have any transcriptions"), self.main_overlay)
return
if not any(filter(lambda x: '(en' in x, transcriptions)):
transcriptions.insert(0, 'English (Translate:en)')
if not any(filter(lambda x: '(en' in x and 'auto-generated' not in x, transcriptions)):
transcriptions.insert(0, 'English (translate:en)')
dialog_widget.simple_dropdown(
_('Attach YouTube Video?'),