diff options
| author | Fuwn <[email protected]> | 2023-09-22 16:43:01 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2023-09-22 16:43:01 -0700 |
| commit | 995e1e1ee371e2805ac4cd4d28df2e2dd0c62286 (patch) | |
| tree | a9a65acdf2e0078be7b6186af08bfb35df2f606f /src/stream_command.sh | |
| parent | feat(stream): use memento (diff) | |
| download | kaguya-995e1e1ee371e2805ac4cd4d28df2e2dd0c62286.tar.xz kaguya-995e1e1ee371e2805ac4cd4d28df2e2dd0c62286.zip | |
feat(stream): chooseable language
Diffstat (limited to 'src/stream_command.sh')
| -rw-r--r-- | src/stream_command.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/stream_command.sh b/src/stream_command.sh index 32b1e65..5c688ae 100644 --- a/src/stream_command.sh +++ b/src/stream_command.sh @@ -35,7 +35,7 @@ subtitles_command=( '--cookies-from-browser' 'firefox' '--no-download' '-o' '/tmp/skyla_subtitles' - '--sub-lang' 'en-US' + '--sub-lang' "${args['--language']}" '--write-subs' '--user-agent' "${user_agent}" "${args[uri]}" @@ -67,7 +67,7 @@ if [ -n "${args['--username']}" ]; then fi memento \ - --sub-file="/tmp/skyla_subtitles.en-US.ass" \ + --sub-file="/tmp/skyla_subtitles.${args['--language']}.ass" \ "$("${media_command[@]}")" rm /tmp/skyla_subtitles.*.ass |