aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFuwn <[email protected]>2023-09-22 16:40:55 -0700
committerFuwn <[email protected]>2023-09-22 16:41:18 -0700
commit8d0afde92c498add2d32bc8b275eb415041df45a (patch)
tree2bdecfa31adc1d116a8aa34bca9e9c230aec45cc
parentfeat(stream): implement url streamer (diff)
downloadkaguya-8d0afde92c498add2d32bc8b275eb415041df45a.tar.xz
kaguya-8d0afde92c498add2d32bc8b275eb415041df45a.zip
feat(stream): use memento
-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