From 86e9c745681a6cde96e1089b9a70f7cd2397a720 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Fri, 23 Aug 2024 13:58:40 +0200 Subject: fix(treewide): Actually use the values from the config --- src/select/cmds.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/select') diff --git a/src/select/cmds.rs b/src/select/cmds.rs index 85e655f..c480bd9 100644 --- a/src/select/cmds.rs +++ b/src/select/cmds.rs @@ -63,7 +63,10 @@ pub async fn handle_select_cmd( } => { let hash = shared.hash.realize(&app).await?; let video = get_video_by_hash(app, &hash).await?; - let video_options = VideoOptions::new(subtitle_langs, speed); + let video_options = VideoOptions::new( + subtitle_langs.unwrap_or(app.config.select.subtitle_langs.clone()), + speed.unwrap_or(app.config.select.playback_speed), + ); let priority = compute_priority(line_number, shared.priority); if let Some(_) = video.cache_path { -- cgit 1.4.1