Fix youtube integration

This commit is contained in:
jeffser 2024-10-16 23:19:34 -06:00
parent 218c10f4ad
commit e67d0bea83

View File

@ -769,7 +769,7 @@ Generate a title following these rules:
dialog_widget.simple_dropdown(
_('Attach YouTube Video?'),
_('{}\n\nPlease select a transcript to include').format(yt.streams[0].title),
lambda caption_name, yt=yt, video_url=text: generic_actions.attach_youtube(yt.streams[0].title, yt.author, yt.watch_url, video_url, yt.video_id, caption_name),
lambda caption_name, yt=yt, video_url=text: generic_actions.attach_youtube(yt.title, yt.author, yt.watch_url, video_url, yt.video_id, caption_name),
transcriptions
)
except Exception as e: