aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/bashly.yml2
-rw-r--r--src/stream_command.sh4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/bashly.yml b/src/bashly.yml
index 5d06221..19c4955 100644
--- a/src/bashly.yml
+++ b/src/bashly.yml
@@ -45,7 +45,7 @@ commands:
required: true
repeatable: true
- name: stream
- dependencies: [date, yt-dlp, sed, mplayer, rm]
+ dependencies: [date, yt-dlp, sed, memento, rm]
args:
- name: uri
required: true
diff --git a/src/stream_command.sh b/src/stream_command.sh
index 9ae913c..32b1e65 100644
--- a/src/stream_command.sh
+++ b/src/stream_command.sh
@@ -66,8 +66,8 @@ if [ -n "${args['--username']}" ]; then
media_command+=(-p "${args['--password']}")
fi
-mplayer \
- -sub /tmp/skyla_subtitles.*.ass \
+memento \
+ --sub-file="/tmp/skyla_subtitles.en-US.ass" \
"$("${media_command[@]}")"
rm /tmp/skyla_subtitles.*.ass