Skip to content

Commit f9294ff

Browse files
authored
feat: Added VLC Sub Support (#192)
* feat: Added VLC Sub Support * Updated versioning and formatting
1 parent 244412a commit f9294ff

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lobster.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/sh
22

3-
LOBSTER_VERSION="4.2.2"
3+
LOBSTER_VERSION="4.2.3"
44

55
config_file="$HOME/.config/lobster/lobster_config.txt"
66
lobster_editor=${VISUAL:-${EDITOR}}
@@ -415,7 +415,8 @@ EOF
415415
fi
416416
;;
417417
vlc)
418-
vlc "$video_link" --meta-title "$displayed_title"
418+
vlc_subs_links=$(printf "%s" "$subs_links" | sed 's/https\\:/https:/g; s/:\([^\/]\)/#\1/g')
419+
vlc "$video_link" --meta-title "$displayed_title" --input-slave="$vlc_subs_links"
419420
;;
420421
mpv | mpv.exe)
421422
[ -z "$continue_choice" ] && check_history

0 commit comments

Comments
 (0)