diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-08-23 13:58:40 +0200 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-08-23 13:58:40 +0200 |
commit | 86e9c745681a6cde96e1089b9a70f7cd2397a720 (patch) | |
tree | 6e45077a74f0d780be455ac95dbed36f715fc727 /src/select | |
parent | feat(watch/events): Add further understood script-messages (diff) | |
download | yt-86e9c745681a6cde96e1089b9a70f7cd2397a720.tar.gz yt-86e9c745681a6cde96e1089b9a70f7cd2397a720.zip |
fix(treewide): Actually use the values from the config
Diffstat (limited to '')
-rw-r--r-- | src/select/cmds.rs | 5 |
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 { |