diff options
Diffstat (limited to 'src/stream_command.sh')
| -rw-r--r-- | src/stream_command.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/stream_command.sh b/src/stream_command.sh index 5c688ae..4c9e0c2 100644 --- a/src/stream_command.sh +++ b/src/stream_command.sh @@ -41,11 +41,15 @@ subtitles_command=( "${args[uri]}" ) -if [ -n "${args['--username']}" ]; then +if [ -n "${args['--username']}" ] || [ -n "${args['--password']}" ]; then subtitles_command+=(-u "${args['--username']}") subtitles_command+=(-p "${args['--password']}") fi +if [ -n "${args['--cookies']}" ]; then + subtitles_command+=(--cookies "${args['--cookies']}") +fi + "${subtitles_command[@]}" if [[ -n "${args['--fix']}" ]]; then |