aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFuwn <[email protected]>2023-10-02 17:00:15 -0700
committerFuwn <[email protected]>2023-10-02 17:00:15 -0700
commitd37c61ed1998248ba58b4cd5616729aee4ab0c6e (patch)
treed3b9a6eb17fd5597a429750fa18b0f23d909646a
parentdocs(bashly): add help for all commands (diff)
downloadkaguya-d37c61ed1998248ba58b4cd5616729aee4ab0c6e.tar.xz
kaguya-d37c61ed1998248ba58b4cd5616729aee4ab0c6e.zip
feat(stream): best audio + video
-rw-r--r--src/stream_command.sh14
1 files changed, 2 insertions, 12 deletions
diff --git a/src/stream_command.sh b/src/stream_command.sh
index 39255c2..3c96b84 100644
--- a/src/stream_command.sh
+++ b/src/stream_command.sh
@@ -8,9 +8,7 @@ if [[ -n "${args['--download']}" ]]; then
"--all-subs"
"--cookies-from-browser" "firefox"
"--embed-subs"
- "-f" 'best[height=1080]'
- "--remux" "mkv"
- "--merge" "mkv"
+ '-f' 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/bestvideo+bestaudio/best'
"--verbose"
"--user-agent" "${user_agent}"
"${args[uri]}"
@@ -38,14 +36,6 @@ if [[ -n "${args['--download']}" ]]; then
return
fi
-# mpv "$(yt-dlp \
-# --cookies-from-browser firefox \
-# --extractor-args crunchyrollbeta:hardsub=en-US \
-# -f 'best[height=1080]' \
-# -g \
-# --verbose \
-# "${1}")"
-
subtitles_command=(
'yt-dlp'
'--cookies-from-browser' 'firefox'
@@ -75,7 +65,7 @@ fi
media_command=(
'yt-dlp'
'--cookies-from-browser' 'firefox'
- '-f' 'best[height=1080]'
+ '-f' 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/bestvideo+bestaudio/best'
'-g'
'--user-agent' "${user_agent}"
"${args[uri]}"