diff options
author | xyz <gky44px1999@gmail.com> | 2021-11-24 15:55:11 -0800 |
---|---|---|
committer | xyz <gky44px1999@gmail.com> | 2021-11-24 15:55:11 -0800 |
commit | 18c3c32eb76bb37720dc4b6bac36ce0795984c45 (patch) | |
tree | 98d8a2c8e13488685b8391899ed11daa876d9c4c /home/xyz/.local | |
parent | a6a12ad66d60def11af3c1f4d8d13db4eda74fab (diff) |
mpvy; do not download videos to /tmp/, /tmp/ is mounted on RAM!
Diffstat (limited to 'home/xyz/.local')
-rwxr-xr-x | home/xyz/.local/bin/mpvy | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/home/xyz/.local/bin/mpvy b/home/xyz/.local/bin/mpvy index b0709b25..880d1ffa 100755 --- a/home/xyz/.local/bin/mpvy +++ b/home/xyz/.local/bin/mpvy @@ -32,7 +32,7 @@ case $flag in # here if use --write-sub, mpv doesn't recognize subtitles? # --embed-subs is a little bit better, but still worse then direct streaming A) yt-dlp -f "$format" --embed-subs -P "${download_dir:-"$XDG_DOWNLOAD_DIR/mpvy/"}" --sponsorblock-remove all "$url";; - a) yt-dlp -f "$format" --embed-subs -P "${download_dir:-/tmp/mpvy/}" --sponsorblock-remove all "$url" --exec 'mpv --fs --speed=2';; + a) yt-dlp -f "$format" --embed-subs -P "${download_dir:-"$XDG_DOWNLOAD_DIR/mpvy/"}" --sponsorblock-remove all "$url" --exec 'mpv --fs --speed=2';; s) mpv --ytdl-format="$format" --ytdl-raw-options='write-sub=' --fs --speed=2 "$url";; esac # not sure if this is the best practice, but it seems working ;) |