From c3b105c30b6cab8b3e8d9ea6c357e12b8aa9bc35 Mon Sep 17 00:00:00 2001 From: jeffser Date: Thu, 17 Oct 2024 12:42:47 -0600 Subject: [PATCH] changed when translated caption option appears --- src/window.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/window.py b/src/window.py index b3464fc..c10a5e3 100644 --- a/src/window.py +++ b/src/window.py @@ -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 and 'auto-generated' not in x, transcriptions)): - transcriptions.insert(0, 'English (translate:en)') + if not any(filter(lambda x: '(en' in x and 'auto-generated' not in x and len(transcriptions) > 1, transcriptions)): + transcriptions.insert(1, 'English (translate:en)') dialog_widget.simple_dropdown( _('Attach YouTube Video?'),