From f9294ff2e8635b0c866dd9b645c1db19529d039b Mon Sep 17 00:00:00 2001 From: Ibrahim Ahmed <13389823+ibz096@users.noreply.github.com> Date: Sun, 25 Feb 2024 21:18:11 -0500 Subject: [PATCH] feat: Added VLC Sub Support (#192) * feat: Added VLC Sub Support * Updated versioning and formatting --- lobster.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lobster.sh b/lobster.sh index d3b25a3..a1d7fd4 100755 --- a/lobster.sh +++ b/lobster.sh @@ -1,6 +1,6 @@ #!/bin/sh -LOBSTER_VERSION="4.2.2" +LOBSTER_VERSION="4.2.3" config_file="$HOME/.config/lobster/lobster_config.txt" lobster_editor=${VISUAL:-${EDITOR}} @@ -415,7 +415,8 @@ EOF fi ;; vlc) - vlc "$video_link" --meta-title "$displayed_title" + vlc_subs_links=$(printf "%s" "$subs_links" | sed 's/https\\:/https:/g; s/:\([^\/]\)/#\1/g') + vlc "$video_link" --meta-title "$displayed_title" --input-slave="$vlc_subs_links" ;; mpv | mpv.exe) [ -z "$continue_choice" ] && check_history