summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxyz <gky44px1999@gmail.com>2021-09-21 00:34:03 -0700
committerxyz <gky44px1999@gmail.com>2021-09-21 00:34:03 -0700
commit62ee78005ace41abab179580905dff52b6516271 (patch)
tree9b1b0cba71860cddab1db5c4fa792aaa7cafb9fe
parent815a0d392143b2149a2d7cb8e89737175ad5da8c (diff)
refactor
-rwxr-xr-x.local/bin/mpvy2
1 files changed, 1 insertions, 1 deletions
diff --git a/.local/bin/mpvy b/.local/bin/mpvy
index 50c2566c..eb1820f8 100755
--- a/.local/bin/mpvy
+++ b/.local/bin/mpvy
@@ -36,7 +36,7 @@ case $flag in
a) yt-dlp -f "$format" --embed-subs -P "${download_dir:-/tmp/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 works ;)
+# not sure if this is the best practice, but it seems working ;)
status=$?
[ $status -ne 0 ] && notify-send 'mpvsel failed'
exit $status