about summary refs log tree commit diff stats
path: root/src/select
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-08-23 13:58:40 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-08-23 13:58:40 +0200
commit86e9c745681a6cde96e1089b9a70f7cd2397a720 (patch)
tree6e45077a74f0d780be455ac95dbed36f715fc727 /src/select
parentfeat(watch/events): Add further understood script-messages (diff)
downloadyt-86e9c745681a6cde96e1089b9a70f7cd2397a720.tar.gz
yt-86e9c745681a6cde96e1089b9a70f7cd2397a720.zip
fix(treewide): Actually use the values from the config
Diffstat (limited to '')
-rw-r--r--src/select/cmds.rs5
1 files changed, 4 insertions, 1 deletions
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 {